Search code examples
androidadb

How to deal with the error of adb connect?


I can connect with adb connect before. But after I restart computer and connect again it has the error: enter image description here

There is no adb server in task manager. So it is no use with adb kill-server. I did not connect usb and can not restart adb.

Is there other solution except restart computer?


Solution

  • Your USB is not connected so i can assume, you are trying to connect it over wifi.

    1) For connecting your device over wifi, your android device needs to be rooted

    2) Download emulator for your android device from the play store.

    3) Write below code in emulator.

    su
    setprop service.adb.tcp.port 5555
    stop adbd
    start adbd
    

    4) Now open your Terminal and try to connect it again. It should work like a charm. But make sure that given IP address is correct for your android device.

    If still problem persist , you can try this. There are many third party apps on the play store which will be useful to have a look.

    Ex. adbWireless , WiFi ADB