最新回答 / 杨晓龙0
现在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 命令执...
2018-04-11
解决如下
(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
(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
2018-04-11
android 真机运行界面报错
unable to load script from assets 'index.android.bundle'
unable to load script from assets 'index.android.bundle'
2018-04-11