CentOS7.5 AndroidStudio Debug报错:insufficient permissions for device

10/29 16:18:22: Launching instantapp
$ adb push /home/vevi/AndroidStudioProjects/WeChatGod/app/build/outputs/apk/debug/app-debug.apk /data/local/tmp/com.vevisoft.wechatgod.app
com.android.ddmlib.AdbCommandRejectedException: insufficient permissions for device
See [http://developer.android.com/tools/device.html] for more information
Error while Installing APK

这是因为Device没有权限

解决方案:

1.终端,找到AndroidStudio的PlatForm-Tools 文件夹,重启adb服务

./adb kill-server
sudo ./adb start-server

2.拔掉USB再重新插入USB,为了让AndroidStudio找到设备

 

如果是Ubuntu可以看这篇文章:https://blog.csdn.net/h3c4lenovo/article/details/8098347

posted @ 2018-10-29 16:51  Vevi-DP  阅读(394)  评论(0编辑  收藏  举报