react-native---配置reactnative报红,run-Android时候报错unable to load script from assets 'index.android.bundl

按照步骤:

1 新建assets进入\android\app\src\main

 新建assets文件夹

2 修改entry–file根目录cmd运行命令:

 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 运行run-android重新运行

run-android

你可能感兴趣的:(react-native---配置reactnative报红,run-Android时候报错unable to load script from assets 'index.android.bundl)