Android Studio没有检测到我的USB设备 - ubuntu

时间:2023-02-05 23:39:49

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. Even I tried with previous version still its not detecting. I have already enabled usb debugging. I tried MTP and PTP too nothing works for me.

在Ubuntu上将它从2.1.4更新到2.2.3之后,android设备未在Android工作室中检测到,之前它工作正常。即使我尝试使用以前的版本仍然没有检测到。我已经启用了usb调试。我尝试过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

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:对不起我的英语

3 个解决方案

#1


0  

install device driver on Ubuntu and restart the system.. make sure you select MTP is selected

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

#2


0  

It is because, I'm running studio on ubuntu 32-bit version. Android studio Developers stopped supporting 32-bit versions. To get it worked downgrade your build version to 21 or below in gradle and rebuild the project (download if it needed).

这是因为,我在ubuntu 32位版本上运行工作室。 Android studio开发人员停止支持32位版本。为了使其工作,你的构建版本在gradle中降级到21或更低,并重建项目(如果需要,下载)。

#3


-1  

This command is to install the mainstream device driver, can not find the driver can also be manually added in /etc/udev/rules.d/51-android.rules

此命令是安装主流设备驱动程序,找不到驱动程序也可以手动添加到/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

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

#1


0  

install device driver on Ubuntu and restart the system.. make sure you select MTP is selected

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

#2


0  

It is because, I'm running studio on ubuntu 32-bit version. Android studio Developers stopped supporting 32-bit versions. To get it worked downgrade your build version to 21 or below in gradle and rebuild the project (download if it needed).

这是因为,我在ubuntu 32位版本上运行工作室。 Android studio开发人员停止支持32位版本。为了使其工作,你的构建版本在gradle中降级到21或更低,并重建项目(如果需要,下载)。

#3


-1  

This command is to install the mainstream device driver, can not find the driver can also be manually added in /etc/udev/rules.d/51-android.rules

此命令是安装主流设备驱动程序,找不到驱动程序也可以手动添加到/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

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