react native 出现 Unable to load script from assets index.android.bundle on windows

项目根目录下

1.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://stackoverflow.com/questions/44446523/unable-to-load-script-from-assets-index-android-bundle-on-windows

猜你喜欢

转载自blog.csdn.net/txl910514/article/details/80150003