在Windows中连接到远程调试器时的本机超时 [英] React-native Timeout when connecting to remote debugger in windows

查看:106
本文介绍了在Windows中连接到远程调试器时的本机超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为一个整体,我是React-Native和android应用程序开发的新手.当我尝试在Android Emulator(Pixel 2手机)中运行远程调试器时,在模拟器中出现以下错误:

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.

以下是自动生成的调试器URL: http://10.0.2.2:8081/debugger-ui

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

如何解决此问题?

推荐答案

http://10.0.2.2:8081/debugger-ui 这是Android VM的内部IP,与您的浏览器一起使用 localhost:8081/debugger-ui 参考

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

这篇关于在Windows中连接到远程调试器时的本机超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆