felipecsl / ktnes

A multiplatform NES emulator written in Kotlin
https://ktnes.com
304 stars 33 forks source link

Getting error when building in AS: Unresolved reference: raw #3

Closed dturner closed 6 years ago

dturner commented 6 years ago

After following the build instructions I imported the ktnes project into Android Studio.

When attempting to run the app on my Pixel XL (running Android 9.0 Pie) I get the following error:

e: /Users/donturner/Code/workspace-android/ktnes/android/app/src/main/kotlin/com/felipecsl/knes/app/MainActivity.kt: (148, 23): Unresolved reference: raw
dturner commented 6 years ago

Ah, I see this is a reference to a ROM file:

const val ROM = R.raw.legend_of_zelda
dturner commented 6 years ago

Might be worth updating the README with instructions on where to save your ROM file. i.e.

ktnes/android/app/src/main/res/raw

Also, are there any legal ROMs which could be used for testing?

felipecsl commented 6 years ago

Good point, I'll fix that, should really add a file picker so you can use whatever ROM file you want. You can find some public domain NES ROMs here https://www.zophar.net/pdroms/nes.html

felipecsl commented 6 years ago

This is fixed