Created
November 16, 2018 16:48
-
-
Save gjhuerte/f9d262249f03fd645d0a8cff59144d75 to your computer and use it in GitHub Desktop.
android-development-fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Open development menu: ctr: + m | |
https://stackoverflow.com/questions/44446523/unable-to-load-script-from-assets-index-android-bundle-on-windows | |
I've encountered the same issue while following the React Native tutorial (developing on Linux and targeting Android). | |
This issue helped me resolve the problem in following steps. | |
(in project directory) mkdir android/app/src/main/assets | |
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res | |
react-native run-android | |
You can automate the above steps by placing them in scripts part of package.json like this: | |
"android-linux": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && react-native run-android" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
firebase.database is not a function
link