Android 开发者 电脑无设备列表

排查

  1. adb 重新打开
adb kill-server
sudo adb start-server
  1. 查看设备
adb devices

adb devices 报错 no permissions (user in plugdev group; are your udev rules wrong?) 3种解决方案

  1. 手持设备更改模式 PTP (Picture Transfer Protocol) 再试尝试
  2. 添加当前用户到组里 sudo useradd -G plugdev $USER
  3. 添加以下步骤
    1. 显示USB端口连接信息
    lsusb
    Bus 002 Device 002: ID 8087:8000 Intel Corp. 
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 8087:8008 Intel Corp. 
    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 003: ID 04f2:b43b Chicony Electronics Co., Ltd Chicony USB 2.0 Camera
    Bus 003 Device 002: ID 8087:07dc Intel Corp. 
    Bus 003 Device 059: ID 0483:5710 STMicroelectronics Joystick in FS Mode
    Bus 003 Device 039: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
    Bus 003 Device 058: ID 05c6:9091 Qualcomm, Inc. Android
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
    1. 写入值
    vi /etc/udev/rules.d/51-android.rules
    SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", ATTR{idProduct}=="9091", MODE="0666", GROUP="plugdev"
    
    1. 权限
    sudo chmod a+r /etc/udev/rules.d/51-android.rules
    
    1. 重载生效
    sudo udevadm control --reload-rules
    sudo service udev restart
    sudo udevadm trigger
    

你可能感兴趣的:(Android 开发者 电脑无设备列表)