Development on Nexus 5x which cannot connect via USB

451 Views Asked by At

I faced an issue with my Nexus 5x which I just acquired for Android 8 development: even after setting the development mode to be on, USB debugging to be on, Android Studio or adb refused to see it. (On the other hand, my Nexus 6 works fine...) Tried a few USB-C wires (including one that said compatible with Nexus 5x). and the result is the same.

I am using a Mac.

1) Is this a hardware defect or is it a USB mode I need to set? 2) If it is not possible to connect, how do I do wireless development (without connecting via wire first)?

1

There are 1 best solutions below

1
On

First of all you need to check if your device is showing in adc command shell using this command: adb devices

if you device is showing then it's good and if not you need to make sure that Media device (MTP) is disabled. When it's disabled adb devices lists the device, when enabled it does not. After that go through the following process

  • Run adb tcpip 5555

  • Disconnect your device (remove the USB cable).

  • Go to the Settings -> About phone -> Status to view the IP address of your phone.

  • Run adb connect :5555

more you can follow up with this Link.

And the second option is open your android studio go to

file -> settings -> plugins -> search adb wifi

install that plugin and follow the steps. More you can read about adb wifi is here:

Android Wifi ADB

Github link