![]() If you are able to successfully build the project, but the app stays blocked on the splash screen (also known as the launch screen), this usually means you didn’t start the metro bundler in the correct folder or under the right React Native version. Now load the new ~/.bash_profile in your Terminal (restart the Terminal or run “ source ~/.bash_profile“), and re-run the Android app. Open your ~/.bash_profile, and add the following lines at the beginning: export ANDROID_HOME=~/Library/Android/sdk/Įxport PATH=~/Library/Android/sdk/tools:$PATHĮxport PATH=~/Library/Android/sdk/platform-tools:$PATH If you’re running into this issue when building a React Native mobile app on Android, it’s because your Android SDK path is broken or it doesn’t exist. If you don’t have gradle installed, follow gradle documentation on how to install it (or just run “ brew install gradle” on MacOS). You can generate this binary by simply running gradle wrapper If you’re running into this issue, it’s because you’re missing this file: android/gradle/wrapper/gradle-wrapper.jar. 3. Error: Could not find or load main class ![]() Once the metro bundler started, simply reload the project. You’ll have to start it manually by running npm start -reset-cache ![]() If you’re getting this error, it means your packager server didn’t start. As long as you got the successful green message “BUILD SUCCESSFUL” (see image below), you can manually open the app on the device/emulator on which you built the project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |