In the past I've never had to set this up, but I updated Android Studio to version 2.3.1 today and got this error when clicking debug:
05/03 17:19:19: Launching app
$ adb push app-debug.apk {path on my computer}
com.android.ddmlib.AdbCommandRejectedException: insufficient permissions for device: verify udev rules.
See [http://developer.android.com/tools/device.html] for more information.
Error while Installing APK
I went to the page they specified, where they told me to make the file /etc/udev/rules.d/51-android.rules
So I did, adding this line:
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="plugdev"
For my (Huawei) Nexus 6P.
I also added the debug
section to build.grade
, as they specified.
However, I still get the same error. I tried substituting my own linux user group in place of plugdev
, but that didn't fix the issue either. Any suggestions?