Android device appearing in adb but not Eclipse - android

Android debug bridge (adb) recognises a connected phone in usb debugging mode
$ ./adb devices
List of devices attached
SH11KPL04620 device
But Eclipse doesn't see the same device:
Run as -> Android application
Android Device Chooser
Choose a running Android device
(none listed)

Make Sure Ur use debuging is On
Make Sure ur code built version is compatible with device android version
ur can try adb reset as shown below:

Related

How to make ADB wireless working in Android 11?

I am trying ADB wireless in Android 11 without cable.
Wireless ADB debugging enabled
Phone and Laptop on the same network
ADB updated to the latest version
Android studio updated to the latest version
Android device shows paired devices list
Terminal shows successfully connected
Still cannot see the device in ADB devices or in the RUN section of Android studio (i.e. cannot run the application to connected device)
Look at the screenshots below, what could be the problem here?
you've to connect the device with adb connect ip:port
so according to the screenshot it should be adb connect 192.168.1.101:41743
You this package to scan QR from command line
https://www.npmjs.com/package/adb-wifi
npm i -g adb-wifi
and run
adb-wifi
Scan the QR code
Make sure you are in same wifi

Android Studio: USB device not recognized as Android device

I am trying to test an application on my Android phone (Samsung Galaxy S8), but I cannot see it in the available devices menu in Android Studio. I can see it as a USB device is not recognized as an Android device.
This seems strange, considering that I have enabled developer mode on my phone. Furthermore, when I check to see that the driver for the device updated to the latest version, it shows that it is updated correctly.
If you are sure you did everything right, but you are still facing this problem, try to run this command in cmd:
adb kill-server
After that reconnect your phone and run:
adb start-server
And check if your phone is in devices lists by run:
adb devices
(In some cases you should restart the Android studio)

Connected devices are not showing to run the project after updating the android studio to 3.5

i recently updated my android studio after update connected devices are not showing to run the project.(developer options and usb debugging mode all are fine of device side). how can i fix it?
Try to restart adb using terminal, Connect your device and type
"adb devices" command
it will restart adb and ask for the permission in phone

My app won't run on LG G5. USB debugging & OEM driver are OK

I'm struggling to get my stock standard Android application ("hello world") running on my LG G5. My device is just not picked up by Android studio's deployment target window ("No USB devices or running emulators detected").
Can not understand why though because I do not pick up any usb driver issues in computer manager (G5 SE identified under portable devices without shown driver problem), and my phone's development option with USB debugging is enabled as shown by Android instructions.
Some additional guidance would help please.
First of all run adb devices (located in android sdk>platform-tools>) from command line / terminal and check if your phone is listed.
If not restart adb :
adb kill-server
adb start-server
If it doesn't work try changing USB Configuration on your phone: select MTP or PTP. You can change this from top panel when your phone is connected.
If this will show confirmation dialog with MAC address confirm it.
Your phone has to be visible by ADB before it can be visible by Android Studio.

Not able to connect Android Wear Emulator with Device

I am not able to connect Android Wear Emulator with my device.I have HTC One device which has 4.4 (KitKat OS).
I follow below link :
Setting up Android Wear
But, when I execute the line adb -d forward tcp:5601 tcp:5601 through command prompt,nothing happens.Android Wear emulator does not show device connected.
Note : I am able to launch the Android Wear Preview app successfully in my device and Notifications settings is also enabled.
Any help will be appreciated.
#Lance Nanek basically helped me solved this problem. In case you had the similar problem, these steps might be helpful.
run 'adb devices' , you should see two devices, one is your
emulator, the other is your device with Android Wear Preview app
installed.
you might see your emulator offline, if so, kill the emulator. From avd, start it, carefully uncheck 'launch from snapshot' - this
is contrast to Android Wear Get started instruction: "Start the AVD
again, but select Launch from snapshot and deselect Save to
snapshot."
run 'adb devices' again, make sure you do see two
devices online
run command 'adb -d forward tcp:5601 tcp:5601'
from the android wear preview app, tape connect, you should be ready
to go.
On the newly updated Android Wear app (Aug 2014) there is a settings button top right when asked to choose a device connected via bluetooth. Pressing this button will connect to an emulator instead.
Enable adb debugging in the developer options on your watch.
Enable bluetooth debugging in the developer options on your watch.
Enable bluetooth debugging in the wear app on your phone. run in terminal:
adb forward tcp:4444 localabstract:/adb-hub; adb connect localhost:4444
See this training.
I think I also had luck with using the cradle plugged directly into the computer, but unable to confirm that now.
Android Wear using Genymotion
For people who does not have a phone with Android 4.3 or above, we can not try the Android Wear Preview. :'(
And here is a way you can try, use Genymotion Nexus 4 or any other emulator with Android 4.3 or Android 4.4 and it works!
Setup a Nexus 4 with Android 4.3 in Genymotion.
Start both the Nexus 4 and Android Wear emulator.
You should first install Google Play Services on the Nexus 4:
Download the zip file
Drag it into the Nexus 4
Reboot the device, and now you are able to install "Android Wear Preview" on Play Store
Open Terminal, use adb tools:
adb devices
you shoud see 2 devices,
adb -s [device name of Nexus 4] forward tcp:5601 tcp:5601
Done!
The trouble I was having, was that the pre-selected API level was set incorrectly. It should be set to the following values:
Using Host GPU is optional.
Stuck with the same a while ago. It appeared that Google updated their Android Wear app. After installing the new version I was able to connect successfully to wear through its interface (as long as I used device with android 4.3+ and adb -d forward tcp:5601 tcp:5601 command)
After some hours trying to find the solution... I've found it!
In my case, the problem was that I have two different SDKs (one from Eclipse and the other from Android Studio), so I was trying to execute the ADB commands in the wrong one.
So it is important that you check the path you are using in your IDE and execute the commands on the same.
I was getting suck on "Connecting to Emulator", but I fixed it by using an Android Wear ARM virtual device instead of an x86 one.
Run the adb -d forward tcp:5601 tcp:5601 command in super user mode

Categories

Resources