Android: Problems debugging with the emulator from eclipse


This is driving me crazy. Like these people, <a href="https://stackoverflow.com/questions/1554099/slow-android-emulator/2049798#2049798" rel="nofollow">slow-android-emulator</a>, I'm finding running the emulator from eclipse is slow and problematic. As suggested, I've tried running the emulator seperately. But then I don't get my latest changes. I don't know eclipse that well, but I would like something like 'build' and then somehow load the latest image into the emulator.

Also, I've tried keeping the emulator open and the continually use run->debug, but after 2 or 3 times, I get errors like the following:

Failed to install HelloAndroid.apk on device 'emulator-5554': timeout Launch canceled! emulator: ERROR: the user data image is used by another emulator. aborting Waiting for HOME ('android.process.acore') to be launched... emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'! java.lang.NullPointerException at com.android.ddmlib.Client.sendAndConsume(Client.java:571) at com.android.ddmlib.HandleHello.sendHELO(HandleHello.java:142) at com.android.ddmlib.HandleHello.sendHelloCommands(HandleHello.java:65) at com.android.ddmlib.Client.getJdwpPacket(Client.java:670) at com.android.ddmlib.MonitorThread.processClientActivity(MonitorThread.java:317) at com.android.ddmlib.MonitorThread.run(MonitorThread.java:263)

I've tried killing and restarting the adb server to no avail.

Once again, briefly, I would just like a 'system' where I can effectively make changes, load them into the emulator and test.


The emulator is usually slow, but once started usually I never had to restart.

If you feel that running emulator from outside eclipse is faster, then you can run the emulator outside eclipse and in the android application Run --> Configuration, you can choose "preferred avd" and uncheck automatic target mode. (Also it tells me that your eclipse probably does not have enough memory. You need to change vmargs if you have allocated very little memory. More on that later).

Also when you want to debug again after making some code change, are you closing the debugging session (The red button in your debug window) and starting a new one. The emulator does not handle hot swapping all that well.

(Note: Please try using Jconsole or some other profiler and paste the memory usage or at least check memory usage in task manager.)


please try current avd(emulator) cancel and again start that avd(emulator).


  • Why laravel redirects to https even in local environment?
  • Trouble Processing “javax/xml/XMLConstants.class”
  • Desktop/Mobile detect and redirect by appending/removing subdomain
  • boost::thread_resource_error when more than 32705 threads
  • Start a program in active user session with PowerShell remoting
  • How do I check if a SSLSocket connection is sane on Java?
  • Save disconnected object in entity framework 4
  • nvm installed node and npm, symlink issue when installing local browserify
  • How to debug office add-in for mac?
  • Force iPad app to launch in portrait when landscape is supported
  • How many percent of the tweets does twitter sample API give?
  • How can I extend PHP DOMElement?
  • Installing Perl6 and Panda on Ubuntu 15.10. Problems with bootstrap.pl
  • Can my PDF ping my server when it is opened?
  • Object and struct member access and address offset calculation
  • How can I sort a a table with VBA with given text condition?
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Android full screen on only one activity?
  • When to use `image` and when to use `Matrix` in Emgu CV?
  • R - Combining Columns to String Based on Logical Match
  • How do I change content of ComboFieldEditor?
  • Counter field in MS Access, how to generate?
  • Accessing IRQ description array within a module and displaying action names
  • Is there a amazon webstore API for customers?
  • Can Jackson SerializationFeature be overridden per field or class?
  • Java applet as stand-alone Windows application?
  • How to extract text from Word files using C#?
  • vba code to select only visible cells in specific column except heading
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • KeystoneJS: Relationships in Admin UI not updating
  • trying to dynamically update Highchart column chart but series undefined
  • Understanding cpu registers
  • How do I configure my settings file to work with unit tests?
  • embed rChart in Markdown
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • How can I use `wmic` in a Windows PE script?
  • Unable to use reactive element in my shiny app
  • How do I use LINQ to get all the Items that have a particular SubItem?