标签:load tin cal native -o 解决 module reg 原因
一、run-android报红错:unable to load script from assets ‘index.android.bundl‘
解决:
1.进入\android\app\src\main
2.新建assets文件夹
3.执行
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
二、run-android报红错:Module HMRClient is not a registerd callable module
解决:
原因是ip变动引起的,用ipconfig查看ip后在Dev Setting里面设置的IP,格式ip:8081
标签:load tin cal native -o 解决 module reg 原因
原文地址:https://www.cnblogs.com/piaobodewu/p/9889460.html