This error coming after generating release apk, Please Help
We are automatically closing this issue because it does not appear to follow any of the provided issue templates.
馃憠 Click here if you want to report a reproducible bug or regression in React Native.
what the fuck is this? i had to run the following command to make it work for a bare bone app for android.
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
hopefully i remember if i ever pull it from my git. this is fucking stupid. no docs whatsoever about the update to gradle 5 > above. all my dependencies don't work. my app just go kaput? plus stupid google play forces u to go to API28, anything less, they'll reply something like 'fuck off'.
android:usesCleartextTraffic="true" following
THIS https://stackoverflow.com/questions/55441230/unable-to-load-script-make-sure-you-are-either-running-a-metro-server-or-that-yo
and THIS https://stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted/50834600#50834600
did the job (was having the same error)
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. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
On Arch Linux, the files mentioned in step 3 and 4 may not exactly have the same name (e.g. metro-cache
or haste-map-metro
). To make sure you delete the temp files, navigate to /tmp directory and delete anything with metro
or haste
in it, yourself.
In my case, the emulator was on airplane mode.
Make sure your emulator or mobile phone can communicate with the Metro server.
I m facing again this issue when I upgraded to react native 0.62.0
Any idea how to resolve it ?
Pessoal, essa solu莽茫o funcionou para mim:
N茫o foi poss铆vel carregar o script dos ativos 'index.android.bundle'. Certifique-se de que ...
Esse erro geralmente ocorre porque o sistema n茫o conseguiu criar o pacote inicial que cont茅m todo o c贸digo Javascript da aplica莽茫o.
1- Para resolver, comece a criar uma pasta de ativos dentro da pasta android / app / src / main.
2- Logo ap贸s, execute o comando:
npx react-native bundle --plataforma android --dev false --entry-file index.js - android-app de sa铆da de pacotes / app / src / main / assets / index.android.bundle --assets-dest android / app / src / main / res /
3- Agora, feche o terminal e execute novamente o comando:
npx react-nativo run-android
ou fio executar react -nativo run-android
ou fio android
I had same error, with a wipe data for emulator on AVD problem solved
In my case, the emulator was on airplane mode.
Make sure your emulator or mobile phone can communicate with the Metro server.
Man, so simple! Mine had the network disconnected... Thanks a lot!
what the fuck is this? i had to run the following command to make it work for a bare bone app for android.
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
hopefully i remember if i ever pull it from my git. this is fucking stupid. no docs whatsoever about the update to gradle 5 > above. all my dependencies don't work. my app just go kaput? plus stupid google play forces u to go to API28, anything less, they'll reply something like 'fuck off'.
And even this won't work if you manually do not create the assets
subfolder in the android/app/src/main
folder. Thanks for the command!
Most helpful comment
what the fuck is this? i had to run the following command to make it work for a bare bone app for android.
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
hopefully i remember if i ever pull it from my git. this is fucking stupid. no docs whatsoever about the update to gradle 5 > above. all my dependencies don't work. my app just go kaput? plus stupid google play forces u to go to API28, anything less, they'll reply something like 'fuck off'.