java.io.IOException: Unable to open sync connection! in to the Nexus [duplicate]

五迷三道 提交于 2019-12-04 22:56:41

No it is not about your code. Try to plug usb out and than plag it in again. If it is not help try to reboot you device. Usually it works for me in such cases.

get into Settings->Development->, and try disabling 'USB debugging' and enabling the same

From Your Computer:

Try restarting ADB:

adb kill-server
adb start-server

For Linux(I have to do this on Ubuntu):

sudo -i (for root)
adb kill-server
adb start-server

Script I made in my '.bashrc':

alias fixadb="sudo sh -c '/path/to/adb kill-server'; sudo sh -c '/path/to/adb start-server';"

For Windows:

Ctrl + Alt + Del - Open Task Manager
Kill adb.exe
Right-click on adb.exe, Run as Administrator 

USB Ports:

Try switching USB ports, this usually helps me every once in a while.

From your Phone:

Android SDK < 11:

Settings > Development > Try disabling and re-enabling 'USB debugging'

Android SDK > 11:

Settings > Developer Options > Try disabling and re-enabling 'Android debugging'

Try restarting your phone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!