简体   繁体   English

Android Studio未检测到我的USB设备-Ubuntu

[英]Android Studio not detected my usb device - ubuntu

Android device is not detected in android studio after updating it from 2.1.4 to 2.2.3 on Ubuntu, previously it was working fine. 将Android设备从Ubuntu上的2.1.4更新到2.2.3后,在android studio中未检测到Android设备,以前可以正常使用。 Even I tried with previous version still its not detecting. 即使我尝试使用以前的版本,仍然无法检测到。 I have already enabled usb debugging. 我已经启用了USB调试功能。 I tried MTP and PTP too nothing works for me. 我尝试了MTP和PTP,但对我来说却无济于事。

android device is connected to computer android设备已连接到计算机

bhanuchand@bhanuchand-X550CC:~$ lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f2:b40a Chicony Electronics Co., Ltd 
Bus 001 Device 006: ID 13d3:3362 IMC Networks Atheros AR3012 Bluetooth 4.0 Adapter
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 011: ID 2717:1218  
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 is my device redmi 1s which doesn't have any description 总线003是我的设备redmi 1s,没有任何描述

adb device adb设备

bhanuchand@bhanuchand-X550CC:~$ adb devices
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
976fc0d9    device

it showing nothing enter image description here 它什么也没显示在这里输入图像描述

PS: sorry for my english PS:对不起,我的英语

在Ubuntu上安装设备驱动程序并重新启动系统。.确保选择了MTP。

It is because, I'm running studio on ubuntu 32-bit version. 这是因为,我在ubuntu 32位版本上运行Studio。 Android studio Developers stopped supporting 32-bit versions. Android studio开发人员已停止支持32位版本。 To get it worked downgrade your build version to 21 or below in gradle and rebuild the project (download if it needed). 为了使其工作正常,将您的构建版本降级为gradle并重新构建该项目(如果需要,请下载)。

此命令是安装主流设备驱动程序,找不到驱动程序,也可以在/etc/udev/rules.d/51-android.rules中手动添加

$ wget -S -O - http://source.android.com/source/51-android.rules | sed "s/<username>/$USER/" | sudo tee >/dev/null /etc/udev/rules.d/51-android.rules; sudo udevadm control --reload-rules

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM