I'm trying to attach a USB device (using USB OTG) to my Android device while developing an app using React-Native. Classically to debug an Android app, one connects using USB debug mode over adb, but since my USB port is being used for my USB OTG device, that's not possible.
I tried to use the adb tcpip
method (How can I connect to Android with ADB over TCP?) but that doesn't work because my device can't find the 'development server'. Has anyone had any luck debugging this way?
react-native run-android
command (though initially I did that for building apk) .I am usingnpm start
.RN v0.46.1 and I am on windows – Haggisadb tcpip
followed byadb connect
to your phone's IP would make the phone work just like if it was connected (with respect to usb debugging) – Beneath