react native for android 抛出下面异常,解决方法:
java.lang.RuntimeException: Unable to load script from assets ‘index.android.bundle‘.
https://stackoverflow.com/questions/44446523/unable-to-load-script-from-assets-index-android-bundle-on-windows
- (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
[React-Native] Unable to load script from assets 'index.android.bundle'.
原文地址:https://www.cnblogs.com/fphuang/p/8403639.html
时间: 2024-10-29 18:18:53