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 … Read more

Installation error: INSTALL_FAILED_OLDER_SDK

It is due to android:targetSdkVersion=”@string/app_name” in your manifiest file.Change it to: The targetSdkVersion should be an integer, but @string/app_name would be a string. I think this causing the error. EDIT:You have to add a default intent-filter in your manifiest file for the activity. Then only android can launch the activity. otherwise you will get the … Read more

React Native: JAVA_HOME is not set and no ‘java’ command could be found in your PATH

I’ll answer my own questions and sponfeed my fellow linux users: 1- To point JAVA_HOME to the JRE included with Android Studio first locate the Android Studio installation folder, then find the /jre directory. That directory’s full path is what you need to set JAVA_PATH to (thanks to @TentenPonce for his answer). On linux, you can set JAVA_HOME … Read more