I recently enrolled my Pixel XL for Android Beta program. After the update to Nougat 7.1.2 my device is not detected properly in Android Studio Linux.
我最近注册了我的Pixel XL for Android Beta计划。更新到Nougat 7.1.2后,在Android Studio Linux中无法正确检测到我的设备。
I get something like this in AVD monitor
我在AVD显示器中得到类似的东西
HT6A70201284 [null]
But it was working on my windows desktop, I tried it on other linux devices and got the same issue. I came across a post mentioning about the driver support, so I updated my SDK to Android O preview, but it had no use.
但它正在我的Windows桌面上工作,我在其他Linux设备上尝试了它并得到了同样的问题。我发现了一个关于驱动程序支持的帖子,所以我将我的SDK更新为Android O预览版,但没有用。
Another strange behavior is when I turn of the debug mode in phone, it gets detected by my linux system, other posts state the same driver issues, but I am not able to figure out exactly which driver and from where I am supposed to install.
另一个奇怪的行为是当我打开手机中的调试模式时,它被我的linux系统检测到,其他帖子说明了相同的驱动程序问题,但我无法确切地知道哪个驱动程序以及我应该安装的位置。
2 个解决方案
#1
11
Just a simple solution (Working on Nexus 5X, 7.1.2),
只是一个简单的解决方案(使用Nexus 5X,7.1.2),
- Developer options
- Select USB configurations
- Choose MTP (Media Transfer Protocol)
选择USB配置
选择MTP(媒体传输协议)
OR
If notification panel shows "USB charging this device"
如果通知面板显示“USB充电此设备”
- Tap on it and just select "Transfer files"
- Device detected.
点击它,然后选择“传输文件”
#2
1
I am not sure if anyone else faced this issue, but after trying several stuffs, the problem seems to be solved temporarily.
我不确定是否有其他人遇到过这个问题,但在尝试了几个问题后,这个问题似乎暂时解决了。
Generally I use my device in charging mode while developing the apps, but after the update Android studio detects the device in Data Transfer Mode only, somehow, USB mode charging has some bugs in preview release and couldn't be detected by Android Studio.
通常我在开发应用程序时使用我的设备进行充电模式,但是更新后Android Studio仅在数据传输模式下检测到设备,不知何故,USB模式充电在预览版本中有一些错误,Android Studio无法检测到。
#1
11
Just a simple solution (Working on Nexus 5X, 7.1.2),
只是一个简单的解决方案(使用Nexus 5X,7.1.2),
- Developer options
- Select USB configurations
- Choose MTP (Media Transfer Protocol)
选择USB配置
选择MTP(媒体传输协议)
OR
If notification panel shows "USB charging this device"
如果通知面板显示“USB充电此设备”
- Tap on it and just select "Transfer files"
- Device detected.
点击它,然后选择“传输文件”
#2
1
I am not sure if anyone else faced this issue, but after trying several stuffs, the problem seems to be solved temporarily.
我不确定是否有其他人遇到过这个问题,但在尝试了几个问题后,这个问题似乎暂时解决了。
Generally I use my device in charging mode while developing the apps, but after the update Android studio detects the device in Data Transfer Mode only, somehow, USB mode charging has some bugs in preview release and couldn't be detected by Android Studio.
通常我在开发应用程序时使用我的设备进行充电模式,但是更新后Android Studio仅在数据传输模式下检测到设备,不知何故,USB模式充电在预览版本中有一些错误,Android Studio无法检测到。