React-native Timeout when connecting to remote debugger in windows

此生再无相见时 提交于 2019-12-18 19:40:17

问题


I am new to React-Native and android app development as a whole. While i try to run remote debugger in Android Emulator (Pixel 2 phone), I get the following error in the emulator:

Then after, even if I stop remote debugging, the application won't run on the emulator (i.e. nothing is rendered into the emulator screen). I need to run the project again.

Following is the auto-generated debugger URL: http://10.0.2.2:8081/debugger-ui

How can I Fix this problem?


回答1:


http://10.0.2.2:8081/debugger-ui This is internal IP the Android VM, with your browser use localhost:8081/debugger-ui reference https://github.com/facebook/react-native/issues/16674#issuecomment-376774645




回答2:


uninstall your application, then run => react-native run-android in terminal then click debugging end in chrome replace http://localhost:8081/debugger-ui/, end run react-native run-android. if you still haven't succeeded try again



来源:https://stackoverflow.com/questions/49234795/react-native-timeout-when-connecting-to-remote-debugger-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!