首页 > 其他 > 详细

React Native真机报错总结

时间:2018-11-01 15:32:40      阅读:156      评论:0      收藏:0      [点我收藏+]

一、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

React Native真机报错总结

原文:https://www.cnblogs.com/piaobodewu/p/9889460.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!