Unable to load script from assets 'index.android.bundle'.make sure you bundle is packaged correctly


解决此问题
以下方法每次都需要执行命令2才能更新
1、创建assets目录
mkdir android/app/src/main/assets
2、执行命令
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/
3、重新运行 react-native run-android
本问题解决自:https://www.jianshu.com/p/c9a555098e6b

原文地址:https://www.cnblogs.com/smart-girl/p/10640513.html