无法连接到远程调试器

Unable to connect to remote debugger

我正在 Android 模拟器 Nexus_23 中构建一个 React Native 应用程序。我正在尝试连接到远程调试器,但出现超时错误。刷新时我卡在空白屏幕上。

试过: (1) 也按照网上的一些建议重新安装 Google Chrome 还是遇到同样的问题。 (2) 我设置了我的 ip 地址 ("Dev Settings" -> "Debug server host for device") x.x.x.x:8081 (3) 试过 adb reverse tcp:8081 tcp:8081

本机反应:0.52.0 反应:16.2.0

请帮忙!

Unable to connect to remote debugger

终端中转到您的项目目录启动您的 react-native server 它会为你工作。