I've been developing an Android Application for Android
(SDK min version 14) and I have testing it normally with tablets such as Samsung Galaxy 2 and Nexus 7
.
However when I tried to run the application (by clicking run in AndroidStudio
), AS does not recognise the tablet information, which is shown in the picture below.
The interesting thing is that as shown in the picture above, AS is also detecting the device sdk as API 1
when it's Android version is 4.2.2
The tablet is already set to accept "USB debugging
" in the developer options, I'have tried rebooting the tablet, and restarting AS, but still I get the same problem(everything is fine with nexus 7 and Samsung Galaxy 2
).
The tablet/device I'm working on is a "VeryKool" T742
Environment information:
OS: ubuntu
AndroidStudio version: 0.8.6
Tablet Android version:4.2.2
Tablet Kernel version: 3.4.5
App min SDK: 14
First check adb version:If it gives Output like
Then just restart the daemon.
else install adb first and restart the daemon Worked for me, in ubuntu 16.04.3
Ok So I finally found the problem, apparently on this device you have to set to connect as camera(even after usb debugging is already enabled)
Also this link describes the setting up process
check processes running, i had several adb processes running and i think this was screwing things up for me. Kill them all then restart Studio. HTC Sync Manager, GenyMotion etc and possibly when you have multiple Android Studio windows open can result in multiple conflicting adb processes.
Had the same problem with my Nexus 5X. My first solution was the
adb kill-server
solution mentioned here.A permanent solution is to add a udev rule so that you can always access the device.
Find your device with the command
lsusb
, output e.g.:Check the permissions of the device, e.g.
Bus 001, Device 008
:Create a udev rule file
/etc/udev/rules.d/51-android.rules
with the following content but replace idVendor and idProduct with your output of lsusb:Unplug and plug you device back in. It should now always be recognized. If not, restart the adb server a last time.
Source: http://www.janosgyerik.com/adding-udev-rules-for-usb-debugging-android-devices/
I had the same problem.
I solved it by opening my Android device Settings, then selecting "Turn off" then "Turn on" for USB Debugging.
Disabling and re-enabling debugging while the device was connected did the trick for me.