I am trying to run an app from Android Studio on my Ubuntu laptop.
I have enabled USB debugging, but it is still not working.
When I press run
First of all,
Open terminal and do following:
Do lsusb
command to check your device is indeed connected.
Do adb devices
to check if your device is connected then it is detected as in adb mode.
2.a. if the above command is not found, do sudo apt-get install android-tools-adb
and then check if it is listed.
Secondly, post results of step 1 and 2 with your question to help us in finding a correct solution.
Troubleshooting:
Allow
option when prompted for in your device upon connecting to your ubuntu system.follow the steps as mentioned upon page:
/etc/udev/rules.d/70-android.rules
.SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
to the file.sudo chmod a+rx /etc/udev/rules.d/70-android.rules
As a second step of troubleshooting (make sure you again repeated troubleshooting from step1 in case you failed at this step)
Again, the process:
/etc/udev/rules.d/51-android.rules
.SUBSYSTEM=="usb", ATTR{idProduct}=="1004", MODE="0666"
to the file.sudo chmod a+rx /etc/udev/rules.d/70-android.rules
I faced the same issue but it was my mistake. I didn't turn on the " USB DEBUGGING MODE ".
Settings > Developer Option > Enable USB Debugging Mode.
My device appeared as unrecognized and when I ran adb devices fom android-tools directory it said: adb not a command. Strange. So what I did is installed adb tools additionally and then run adb devices:
sudo apt-get install android-tools-adb
89LY0810Y unauthorized
Then I saw the dialog on my device and selected: Always authorize.
Please make sure your device is in debug mode.