Android Studio recognizes physical Device as Null?

2019-01-10 07:12发布

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.

Device is Null

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

13条回答
Root(大扎)
2楼-- · 2019-01-10 08:04

Ran into the same problem while using Android Studio on Ubuntu. Apparently for me the fix was to set the USB connection mode for the device as MTP.

查看更多
Viruses.
3楼-- · 2019-01-10 08:04

Sometimes in Linux (Centos 6 in my case) the reason can be that you didn't started Android Studio as the root user. please restart android studio as the root user and try it!

查看更多
Explosion°爆炸
4楼-- · 2019-01-10 08:05

I've seen this error a few times when adb hasn't been connected with correct permissions.

On the terminal try
~/Android/Sdk/platform-tools> ./adb devices

if it returns
<deviceIdentifier> no permissions

then you need to restart adb with correct perms
~/Android/Sdk/platform-tools$> ./adb kill-server ~/Android/Sdk/platform-tools$> sudo ./adb devices

if that worked then you'll get
List of devices attached * daemon not running. starting it now on port 5037 * * daemon started successfully * <deviceIdentifier> device

No more Sdk version resolution issues in Android Studio after that.

查看更多
一纸荒年 Trace。
5楼-- · 2019-01-10 08:05

Needed MTP mode, but it does not come up under the USB side. In the storage setting on the menu bar item you get to set the PC connection type as ... MTP.

查看更多
甜甜的少女心
6楼-- · 2019-01-10 08:06

On Ubuntu, with my Pixel XL on 8.0, I had to do this while plugged into computer:

Settings -> Connected Devices -> USB --> Change to 'Transferring Files'

查看更多
SAY GOODBYE
7楼-- · 2019-01-10 08:07

Just run this command after you connect your device to your Ubuntu system:

adb devices

This works for me.

Note: Make sure you have selected file transfer option in your phone.

查看更多
登录 后发表回答