【问题标题】:Android React native debugging shows unable to connect with remote debugger timeout errorAndroid React 本机调试显示无法连接远程调试器超时错误
【发布时间】:2018-06-23 12:32:51
【问题描述】:

当我尝试连接到调试时,它显示unable to connect with remote debugger : timeout

这是我尝试使用 Chrome 访问的网址

http://localhost:8081/debugger-ui/

在控制台中,我收到以下错误:

DeltaDispatcher.js UncaughtSyntax error unexpected token )

 if (!this._initialized && !deltaBundle.reset) {
        throw new Error(
          'DeltaPatcher should receive a fresh Delta when being initialized',
        );

有什么解决办法吗?

【问题讨论】:

  • 已经检查了.. 不工作。
  • 我在 Ubuntu 中工作,因为我尝试了很多我无法通过。所以我打算使用 windows 并设置 windows 所需的一切。在 Windows 中我没有遇到这个问题。
  • 有时删除 react native 并在 ubuntu 中重新安装可能会起作用。如果有人遇到此问题,也请尝试此操作。
  • 尝试提供你的 ip 而不是 'localhost'

标签: ubuntu react-native adb react-native-android genymotion


【解决方案1】:

遇到这个问题,我删除了Node Modules文件夹并再次安装npm,一切正常!

【讨论】:

    【解决方案2】:

    如果您正在使用多个 RN 应用程序并且忘记关闭 Chrome 调试窗口,请先执行此操作并查看。

    【讨论】: