简体   繁体   中英

React-native Timeout when connecting to remote debugger in windows

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 (ie 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?

http://10.0.2.2:8081/debugger-ui这是Android VM的内部IP,浏览器使用localhost:8081/debugger-ui参考https://github.com/facebook/react-native/issues/16674 #issuecomment-376774645

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM