代码之家  ›  专栏  ›  技术社区  ›  Sarun Dahal

在windows中连接到远程调试器时响应本机超时

  •  14
  • Sarun Dahal  · 技术社区  · 7 年前

    我对本地和android应用程序开发的整体反应是新手。当我尝试在Android Emulator(Pixel 2 phone)中运行远程调试器时,我在Emulator中遇到以下错误: Error on Emulator

    然后,即使我停止远程调试,应用程序也不会在模拟器上运行(即,没有任何内容呈现到模拟器屏幕中)。我需要再次运行该项目。

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

    如何解决此问题?

    2 回复  |  直到 7 年前
        1
  •  25
  •   Sohan    6 年前

    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

        2
  •  1
  •   muhyidin    6 年前

    卸载应用程序,然后运行=> react-native run-android 在终端中,然后单击chrome replace中的debugging end(调试结束 http://localhost:8081/debugger-ui/ ,end run react本机运行android。如果仍然没有成功,请重试