简体   繁体   English

在Windows中连接到远程调试器时的React-native超时

[英]React-native Timeout when connecting to remote debugger in windows

I am new to React-Native and android app development as a whole. 我是React-Native和Android应用程序开发的新手。 While i try to run remote debugger in Android Emulator (Pixel 2 phone), I get the following error in the emulator: 当我尝试在Android Emulator(Pixel 2手机)中运行远程调试器时,我在模拟器中收到以下错误: 模拟器出错

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 以下是自动生成的调试器URL: http//10.0.2.28081 / debugb-

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. 卸载你的应用程序,然后在终端运行=> react-native run-android然后点击chrome中的调试结束替换http://localhost:8081/debugger-ui/ ,运行react-native run-android。 if you still haven't succeeded try again 如果你还没有成功再试一次

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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