码迷,mamicode.com
首页 > 其他好文 > 详细

React Native真机报错总结

时间:2018-11-01 16:03:43      阅读:167      评论:0      收藏:0      [点我收藏+]

标签: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

React Native真机报错总结

标签:load   tin   cal   native   -o   解决   module   reg   原因   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!