我执行该项目react-native run-android
在另一个终端中,我这样做:
npm run react-devtools
它打开了电子的新窗口,上面写着:
React Native 应用程序将在几秒钟内打开......
但什么也没发生。
I put in the simulator toggle inspector with Ctrl + m and i can see in networks that it makes a request to http://localhost:8097
and the result is it fails to connect and keeps trying with the same result.
打开的电子窗口表示它正在等待与端口的连接8097所以我可以看到正在尝试连接但没有结果!
您需要在新终端中运行此命令adb reverse tcp:8097 tcp:8097
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)