ReactNative---遇到的错误4

竺承望
2023-12-01

Unable to load script from assets index.android.bundle Make sure
 

your bndle is packaged correctly or you're running a packager serviier

解决方法:

1.  首先手动在main下建立一个assets文件夹

2.然后在项目根目录下执行

react-nativebundle --platform android --dev false --entry-file index.android.js 

--bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

3.再执行 react-native run-android 

Module HMRClient is not a registerd callable module

解决方式:查看Dev Setting里面设置的IP是否正确,或者重新设置


 类似资料: