Unable to load script. Make sure you're either running a Metro server (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly for release.
See original GitHub issueReact Native version:
Steps To Reproduce
Describe what you expected to happen:
Snack, code example, screenshot, or link to a repository:
Issue Analytics
- State:
- Created 4 years ago
- Comments:23 (1 by maintainers)
Top Results From Across the Web
Unable to load script.Make sure you are either running a ...
Make sure port 8081 isn't blocked. Also, make sure that you use one terminal to start the bundler, wait for it to finish...
Read more >unable to load script make sure you are either ... - GitHub
To resolve try the following: 1. Clear watchman watches: `watchman watch-del-all`. 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`. 3....
Read more >React Native: Unable to load script: index. android.bundle
Make sure you 're either running a Metor service (run 'react-native start') or that your bundle 'index.android.bundle' is packaged correctly ...
Read more >unable to load script make sure you are either ... - YouTube
unable o load script in react native solution || unable o load script in react native || unable to load script in react...
Read more >unable to load script make sure you are either ... - YouTube
1.create directory android /app/src/main/assets2. run following command from project root directoryreact- native bundle --platform android ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same issue after upgrading from react-native 0.61.5 to 0.63.2.
npx react-native run-android
andyarn start
in a separate terminal window.npx react-native run-android --variant=Release
.npx react-native run-android --variant=Staging
. When running from Android Studio it logs the ☝️ error:These are the
buildTypes
settings in myandroid/app/build.gradle
(working fine for previous versions of react-native):Please help! All the “solutions” I found so far were either suggesting to start a Metro Instance, or adding an
assets
folder (which already exists in my project), or running a three-lines-long bundle command – but surely there must be a better way!?Update: Adding
bundleInStaging: true
to myapp/build.gradle
as suggested in this answer solved this problem for me! 🎉I have solved the problem using the below steps.