Unable To Connect To My Android Device Via Adb
Solution 1:
Launching Cordova
- Open Node.js / CMD
- Point to "the directory where you have located your source folder" >>> C:\Projects\RJX
- Enable Wifi
- Turn on Developer Option under settings
- Enable / Check USB Debugging Option under settings (Google if cannot find this option)
- Enable / Check the MTP Option under settings (Google if cannot find this option)
ADB Commands
adb kill-server
adb start-server
//plug off cable from mobile and plug in again if you connected your device earlier//Uninstall the application from mobile if you already installed. (if necessary)
adb tcpip 5555
adb connect "ip"//adb connect 192.192.2.128
adb devices //to check device details
cordova run android --device
if this steps are not worked, try to close the cmd and do it again. Sometimes it needs some refresh. **Android devices version 4.0.4 and after should be no problem if you follow these steps.
Solution 2:
I will assume you are able to understand adb connect / ip's etc I won't bore you with that
but there are two lame "gotcha's"
THE GENYMOTION GOTCHA
genymotion WRECKS a lot of this sometimes.. I am sorry but it does.. it has a "I know what I am doing I am taking over" mentality.. sadly it doesn't know what it's doing :-P often you have to turn off genymotion for the adb->usb to work.. basically connect phone FIRST ... make sure it's there in eclipse (adb kill-server / start server if needs be ), then AND ONLY THEN then genymotion AFTER
THE OOPS [/facepalm] GOTCHA
check that your phone it isn't in Windows merely as a "Camera" - go to My Computer and look. If it looks like this pic it's that you're not running Samsung Kies
(/disabled because it's annoying) the phone still goes "blub bling" when you plug it in, it may be connected via wifi so have a LAN ip but it is NOT really "connected" to ur PC. instead run/download/update this (with phone disconnected) then make sure Kies is happy AND MAKE SUREMTU is enabled
Solution 3:
This error happened to me when PC was (accidentally) NOT in the same network as Android. When I logged on Android to the same WIFI network as PC it now works perfect and I don't have this problem.
Solution 4:
The answer here is that it's not listening on the correct (default) port. So you need to set the TCP/IP port to 5555. Connect your device via USB and issue the following command in cmd (terminal):
adbtcpip5555
Following this your adb connect should work fine, e.g.:
adb connect192.168.0.n
Hope this fixes it for you.
Solution 5:
This happened when I was previously connected with one device (e.g. apps2fire
) and then tried using adb
command from another machine. I rebooted the Android device and then tried again and received the prompt to allow the connection as I would have expected.
Post a Comment for "Unable To Connect To My Android Device Via Adb"