HelloAndroid not launching on emulator using eclipse
I'm running the android SDK 3.0 and trying to debug with the eclipse adt plugin. My helloAndroid app is sometimes getting updated on the emulator but it never launches. There are several symptoms:
First, my console shows these messages:
[2011-03-18 08:05:26 - ddmlib]An established connection was aborted by the software in your host machine
java.io.IOException: An established connection was a开发者_如何学JAVAborted by the software in your host machine
Secondly, the logcat view in eclipse contains lots of these messages:
03-18 12:13:13.243: INFO/jdwp(387): Ignoring second debugger -- accepting and dropping
Third, the DDMS perspective in eclipse is completely blank except for a console view.
I tried reinstalling the ADT and platforms. I tried setting up the development tools on the emulator target for debugging (Dev Tools>Development Settings> Wait for Debugger). I tried changing some of the debug configurations (manual/automatic, launch default activity, launch com.example.helloandroid.HelloAndroid).
I'm currently having some success getting the app to upload, but I need the debugger and DDMS. Any advice would be greatly appreciated.
I just moved up to ADT 10 and API3.0 in Eclipse (Linux) and it works, but is very slow. I had several debuggerd error messages initially. Have you researched this on the Eclipse side? It seems like an integration issue..
Googling for android "Ignoring second debugger"
suggests that you're running two DDMS or two ADT plugins (or Eclipse instances). This is preventing the debugger to work.
Exit all the eclipse instances, close ddms, open command prompt and type adb kill-server Start the eclipse.
I keep getting these messages in the DDMS console when I connect my Atrix device, however, I ignore them.
精彩评论