I'm trying to develop using Android Studio 3.1.2 and a ZTE Z557BL running Android 7.1.1. For some reason my computer usually can't find my device, but sometimes it does. When it doesn't appear I use adb kill-server and adb start-server repeatedly, clean my project, restart both devices, etc. Nothing seems to work until the device inexplicably appears in the deployment targets. This is slowing development down tremendously and I'd love a fix or something to try if somebody can possibly help.
sounds like a faulty cable (especially if you hear "the connection/disconnection" sound repeatedly).
Try to uninstall the the driver and reinstall it again as well (adb driver for that device)
You can ignore this problem by debug over wifi. Here are some steps to do that:
Connect your pc and mobile to the same wifi
start tcpip
adb tcpip 5555
restarting in TCP mode port: 5555
adb shell ip addr show wlan0 | grep 'inet ' | cut -d' ' -f6|cut -d/ -f1
192.168.0.18
adb connect 192.168.0.18
connected to 192.168.0.18:5555
Now, you can reject your cable and start dev & debug over wifi
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.