react Error: query failed: synchronization failed

运行 sudo react-native run-android 报错:

 Error: query failed: synchronization failed: Permission denied  

原因 文件权限。


修改文件夹权限 sudo chmod 777 AwesomeProject

finder右健文件夹-显示简介-共享与权限,点击打开,点击⚙️应用到所有

终端cd ~/ AwesomeProject

sudo react-native run-android


弹出Unable to download JS bundle...打开虚拟机或手机菜单键选择最后setting...,点击最后设置服务地址=本地ip:8081,后退

点击菜单键load js 成功= =!


参考:

http://my.oschina.net/jackzlz/blog/508210

http://www.liuhehu.com/?p=915




你可能感兴趣的:(TO,js,Bundle,download,Unable)