notes icon indicating copy to clipboard operation
notes copied to clipboard

React-Native卡在连接远程调试 or React-Native can't connect to remote debugger

Open lanlin opened this issue 7 years ago • 0 comments

情形

项目启动之后,经常会碰到 APP 卡在连接远程调试这个地方。

方法

  1. CLI 下执行如下指令
adb reverse tcp:8081 tcp:8081
  1. 粘贴如下地址到你的 chrome
http://localhost:8081/debugger-ui
  1. 如果以上方式无效,尝试如下步骤
a. 从设备上关闭并卸载该 APP
b. 重新运行 react-native run-android
c. 再次开启远程调试

lanlin avatar Mar 12 '18 02:03 lanlin