Make sure that you've confirmed (from the device) that you trust this computer
If you've just installed usbmuxd (as dependence) it probably didn't run
automatically as you plugged in the device.
If so—try udevadm control --reload
or run usbmuxd manually
Make sure you've installed iTunes and checked that it runs and detects your device
- Make sure you've enabled Developer mode on your device (basically with Settings — Developer Options — USB Debugging)
- Make sure you've confirmed (from the device) you trust your computer
- If confirmation dialog doesn't appear—try to downgrade Android SDK Tools (for instance downgrading
dev-util/android-tools
from9.0.0_p3
to6.0.1_p79
helped me with Xiaomi Mi 8) and then runadb kill-server
andadb devices
- If confirmation dialog doesn't appear—try to downgrade Android SDK Tools (for instance downgrading
- Make sure your device is detectable with ddms/monitor
- On some devices debugging works only if you select the particular "Connect as" option (Built-in CD-ROM, Camera, MTP, etc.)
- Try
adb kill-server
andadb devices
terminal commands
- Check the Vendor ID of your device with
lsusb
- Create or modify the file
~/.android/adb_usb.ini
. Add a line (with the content0x1234
, where1234
should be replaced with your Vendor ID) to the beginning or end of the file - Create or modify the file
/etc/udev/rules.d/51-android.rules
- Modify the file permission:
sudo chmod a+rx /etc/udev/rules.d/51-android.rules
- Add a line (with the following content) to the file:
SUBSYSTEM=="usb", ATTR{idVendor}=="1234", MODE="0666", GROUP="plugdev"
where1234
should be replaced with your Vendor ID - Ensure that you are in the user group plugdev or else add yourself into the group:
sudo gpasswd -a ${USER} plugdev
(this change will work after next login) - Restart the udev service:
sudo service udev restart
adb kill-server ; adb devices
- If your device is not detectable with ddms/monitor
- Check Control Panel — System — Hardware — Device Manager: is your device detected correctly? If it's not—try reinstalling the driver specifying the path to
<Android SDK>\extras\google\usb-driver
- If it didn't work—try reinstalling the driver by choosing
Don't search. I will choose the driver to install
and selectAndroid Composite ADB Interface
- Check Control Panel — System — Hardware — Device Manager: is your device detected correctly? If it's not—try reinstalling the driver specifying the path to
- Make sure you've added a path to
platform-tools
directory (it's located in Android SDK) to Path environment variable - Try to restart the OS
If you're still experiencing issues—try all troubleshooting steps from the beginning (probably you've configured everything right and reapplying one of the previous steps will work)
If it didn't help—try to Google it, specifying the device you use. I'm pretty sure you're running into some known issue ;)
Try this guide
"Windows SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk"
Press More info — Run anyway
Automatic detection of Android Emulator is not supported. Please use File — Detect Devices after Emulator finishes booting