android: eclipse does not load emulator device - android

When I try to Run (or Debug) my project in eclipse, the AVD emulator emulator boots normally but eclipse doesn't recognise it. On DDMS, the Devices tab does not find the AVD emulator and thus I see no traffic in the LogCat.
On the other hand, when I plug my phone and choose Run (or Debug) project, eclipse connects to the phone and works just fine (I see it on DDMS on LogCat shows traffic). Any thoughts on this one?
I'm using Eclipse_Galileo_5.2 and Google APIs (API level 12, Platform 3.1). I was working with the same setup before the problem appeared without any problems.
I highly appreciate all the help...

Simply run from command line adb kill-server and then adb start-server. ADB will reattach to the running emulator and will be able to work with it. Do not exit the emulator as bashu suggests as the problem is likely to appear again if you have a slower computer.

Lots of time it happens to me also.
What i do is, I first Exit the Emulator. Then kill adb using
adb kill-server after that i clean the project.
and then adb start-server
and finally run the application and it works fine for me.
Thanks.

Related

Genymotion virtual device stuck on booting

The virtual device seems to be running but its status is stuck on booting so I can't install GApps (which I need to test some app) also it doesn't appear in the list of devices in Android studio.
I found this workaround to manually connect adb to Genymotion, but I still have an issue with GApps how can I install them?
I have had this same issue previously. However, what I did was that I closed Genymotion, reopen it and restarted the device.Then went to Android Studio and run the app. You should then see the device under 'Connected Devices'. You should be able to see your design on the emulated device.
I was having the same problem, what worked for me was running:
adb devices
If that doesn't work, try running
adb kill-server
adb start-server

Adb connection error eclipse on os x

Hello i am trying to run my android app on eclipse and i have this problem:
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at '/Users/giannis/android-sdks/platform-tools/adb' and can be executed.
any idea about the problem?
Since adb is installed and seems to be working, Eclipse is probably having a problem finding or starting adb. First, check that Eclipse has the right location set for the sdk (Window->Preferences->Android or slightly different on Mac). I think it should based on the error message. Then, if you still can't run the app from Eclipse, try starting adb from the command line with adb start-server.
EDIT: If the app still won't run after doing the above, make sure adb is able to find your device or emulator. Start the emulator or connect your device, then run adb devices from the terminal. If your device or emulator is not listed, adb can't connect to it. If it is an actual device, make sure USB debugging under developer options in the device settings is enabled.

Failed to start monitoring and not run the program. Why?

I reinstalled Windows 7 last week and unzipped Eclipse and reinstalled the SDK again, but I didn't run the program in Eclipse. When I connect the Galaxy phone to my computer, Eclipse shows an error and frequently writes in the console tab Failed to start monitoring 0A3C202B1601A00A. After a while, Eclipse qill show an Android Device Chooser window. I can't select 0A3C202B1601A00A.
I use ADB and i write adb address and adb devices in cmd, cmd writes deamon not running.
When I disconnect the phone from my computer and I want to run the program with an emulator, the program won't run and when I write adb devices in cmd, cmd nothing written.
Why? Please help me :(
Kill the adb task via task manager. Then, type at the command prompt: adb devices
This should restart the adb daemon and all is well.
Re-install the windows driver for your galaxy phone. Its possible that it is corrupted. I had to re-install mine just to get the OS to detect my phone a while back.
Also check the USB debugging mode the phone is using. Sometimes the phone can go into a storage-only mode.
In my case I just had to wait for half an hour after which everything works.
But this was the first start up of my 'hello world' app on my Android phone.
The IDE ran on Ubuntu linux.

emulator not showing in adb devices

if i start an emulator using the android SDK r12 it does not show up in the adb devices list
win7 64 // android 2.2 (not an actual hardware device - just the emulator)
what could be the problem?
You can also try to :
adb kill-server
adb start-server
to restart the adb server. Maybe something went wrong with the adb-server. This happens a lot, and many such issues can be solved by restarting the server.
Make sure that you are at the path and give command.
android-sdk_r12-windows\android-sdk-windows\platform-tools>adb devices
I am also using win7 64 It is working for me. If you are getting any error. Mention it.
Also make sure that USB debugging is enabled in your device.
Settings>Applications>Development>USB debugging
Can you able to see device in eclipse?
If not then close your emulator and open it again.
Sometimes even adb itself bugs, for me always works good old pkill:
pkill -9 adb

Cannot connect Nexus One Phone to Android adb

I am running Android SDK 2.2 and am trying to get the adb to connect to the Google Nexus One phone. Its a new phone, shipped straight from Google - haven't installed any apps on it yet.
(I have Windows XP)
Here is what I have done so far:
Followed the instructions on setting up the device for development as given on the Android Developer's site:
http://developer.android.com/guide/developing/device.html
added android:debuggable="true" to my application manifest
USB debuggable is checked on the phone
downloaded the Device Drivers For Windows Revision 3 (this supports Nexus One phones)
Went through the Hardware Installation wizard to install the device - the device shows up as "Android Composite ADB Interface".
When I run adb devices on the shell, the device appears for a moment, then disappears.
On the Eclipse console, I get the following message:
[2010-11-13 11:54:42 - DeviceMonitor]Failed to start monitoring
I have rebooted the pc several times, uninstalled and reinstalled the drivers several times, but I get the same error each time. As I was researching this problem, someone had recommended rebooting the phone. I am a bit confused by that - is that a soft or hard reboot? Do I just power the phone off/on and is there something more complex involved? Do I have to hard reboot it to reset to factory version - even though its brand new?
Has anyone run into a similar problem? Any help on this would be great.
I can't test my application on the device if the adb cannot view the device. Thanks so much in advance.
I had this same problem. To get it working, do the following:
Close Eclipse
Open Task Manager and kill the adb.exe program.
Re-open Eclipse (Eclipse will automatically restart the adb.exe service)
Run adb devices from a command prompt and you should see something like the following:
C:\> adb devices
List of devices attached
0123456789ABCDEF device
Of course, I'm assuming you have your phone plugged into your computer.
It sounds like something is killing the service as soon as it starts. Try disabling any anti-virus and running adb devices again. You can also check your system logs for errors - run compmgmt.msc and check the Event Viewer's logs.
When I run adb devices on the shell, the device appears for a moment, then disappears
Do you mean Windows' command shell cmd.exe? The output of 'adb devices' doesn't update itself, it should just print out what's currently connected then terminate.
Nothing here worked for me. And you know what? I plugged it to my USB 3.0 port.
Just plug it to regular USB 2.0 and it'll work.
Hi you jst need upgrade your usb driver, follow this ref link, after upgrading you need to uncheck USB debugging, disconnect cable from device and then check USB debugging and connect cable to device again. this'll solve your problem..
link text
I had this same problem. Do the following:
Plug your phone into your computer and:
Run the command prompt.
Go to the tools location of the android sdk.
run 'adb kill-server'
then run 'adb start-server'.
Turn off COMODO Firewall and Defense+ module
I got my Nexus One on Windows 7 64 bit going by following these instructions:
http://developer.android.com/sdk/win-usb.html
Note that the directory has changed to /extras/google/usb_driver.
You know that you need to do this if you go to control panel->devices and printers and show properties on the device, and there's no driver shown.
Open the task manager by Ctrl+Shift+Esc
In the Processes select adb.exe and Click the End process Button.
Now close the eclipse and restart it again.
This worked for me. Hope this would work for you as well.

Categories

Resources