在 Ubuntu 中连接到远程调试器时超时

Timeout while connecting to remote debugger in Ubuntu

我在以下环境中 运行 react-native:-

Environment:
  OS: Linux 4.4
  Node: 6.11.1
  Yarn: 0.22
  npm: 5.5.1
  Watchman: 4.5.0
  Xcode: N/A
  Android Studio: Not Found

Packages: (wanted => installed)
  react: 16.0.0 => 16.0.0
  react-native: 0.51.0 => 0.51.0

每当我尝试远程调试 js 时,我都会在 chrome 中遇到 "Timeout while connecting to remote debugger in real android device" 问题。我还在 mac OS x 中测试了该应用程序,它在远程 js 调试中工作正常。

你好这个问题类似于这样https://github.com/facebook/react-native/issues/16674

我已经通过降级 react-native 版本解决了这个问题。 RN 0.49.3。