Skip to content

Instantly share code, notes, and snippets.

@tidalgo22
Last active September 5, 2017 05:24
Show Gist options
  • Save tidalgo22/6481dac70abd3b3b76935d530d275d07 to your computer and use it in GitHub Desktop.
Save tidalgo22/6481dac70abd3b3b76935d530d275d07 to your computer and use it in GitHub Desktop.
React native android running emulator issues.
Well basically the following are issues on running android emulator.
react native commands:
I. react-native run-android
1. issue: Error: Unable to open class file R.java [duplicate] OR Unable to open class file \R.java: Permission denied
fix: Open android studio, close current project and create a new one, re-run react command.
reference: https://stackoverflow.com/questions/3796490/error-unable-to-open-class-file-r-java
2. issue: (Physical device running issue) Unable to load script from assets 'index.android.bundle'....
fix: Access dev menu by shaking the device, goto dev settings, goto debug server host & port for device, add the machine ip and server port e.g 192.168.1.34:8081
3. issue: react native configuration with the default not found "this normally occur once you uninstall a package"
fix: the build.gradle and MainActivity.java file probably contains the dependecies of the uninstalled package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment