当我们点Debug Android时,会弹出以下错误
Could not debug. Unable to set up communication with VSCode react-native extension. Is this a react-native project, and have you made sure that the react-native npm package is installed at the root?

解决方法:当时我全局安装的react-native-cli版本为最新的2.0.0,可能是这个版本的Bug,需要回退到1.3.0或者更低版本。

npm -g uninstall react-native-cli
npm -g install react-native-cli@1.3.0
1
2
参考:https://github.com/Microsoft/vscode-react-native/issues/365

调试时不需要勾选ALL Exceptions,否则运行起来处处thow Error(),程序会运行不起来。

出现以下红屏(Unable to connect with remote debugger):

解决方法:摇下手机,在弹出的对话框中选择“Dev Settings”,再选择“Debug server host & port for device”,输入电脑的IP地址和监听端口号(默认为8081,用英文分号隔开),例如:192.168.2.32:8081

最新文章

  1. stack.sh failing giving error "g-api did not start"
  2. html5高级
  3. Linux 端口-> PID -> 启动目录
  4. 读书笔记2014第6本:《The Hunger Games》
  5. Delphi开发Windows服务程序
  6. c3p0参数解释
  7. MongoDB 介绍及Windows下安装
  8. 各类形参(引用,const,指针)
  9. Webservice中使用Session、Application
  10. MyEclipse下安装MyBatis Generator代码反向生成工具
  11. 设置Jexus开机启动
  12. jpa数据库表实体命名规则 Unknown column 'user0_.create_time' in 'field list'
  13. 关于iOSlaunchScreen的尺寸
  14. url和资源的再理解
  15. linux系统中安装JDK 查看安装的ava版本
  16. user表中存在多条相同user不同host用户信息时MySQL该匹配哪条记录登录?
  17. Win10远程桌面出现 身份验证错误,要求的函数不受支持,这可能是由于CredSSP加密Oracle修正 解决方法
  18. PAT甲题题解-1010. Radix (25)-二分搜索
  19. 悟空模式-java-工厂方法模式
  20. javascript中字符串与数组互转的方法分享

热门文章

  1. mysql09---sql语句优化
  2. Objective-C-代码块Block回顾
  3. JAVASCRIPT校验大全[转]
  4. C#的几种写文件方法
  5. 手写一个关于title属性自定义提示框解决浏览器(IE)不兼容问题
  6. Mongo读书笔记1 -- GridFS
  7. 【PHP 】伪静态 - 4. 实际运用
  8. ASP.NET Page执行顺序如:OnPreInit()、OnInit()
  9. MySQL 导出函数与存储过程
  10. 栈的应用实例——计算后缀表达式