reactNative Could not connect to development server解决思路

来源:互联网 发布:手机紫光验钞灯软件 编辑:程序博客网 时间:2024/05/19 16:06

1.8081.端口占用,关掉重启

          1.cmd查找端口占用:netstat -ano 找出8081对应的pid,

2.任务管理器,杀掉对应pid的进程(node.exe)

注:http://localhost:8081/index.android.bundle?platform=android,本地服务器


2.不是一个wifi环境,..........................................手机没连一个wifi!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


3.多reload几次。。。。。。。。这点很无语(亲测,两次前后红屏提示不一样)


4.代码中该import的,要import.

0 0
原创粉丝点击