I've been having this problem in eclipse whereby my project builds fine, but when I run the application, eclipse hangs and either freezes or throws up a launch error like below
[2012-11-02 14:17:31 - Unexpected error while launching logcat. Try reselecting the device.] device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:752)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:462)
at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:110)
at java.lang.Thread.run(Unknown Source)
I've also got this error file Picture of error file
I'm not sure how to pinpoint the source of this problem. I'm using android sdk 4.1.2(APK 16) and android ADT 21 (Preview) on eclipse indigo on a windows 64bit machine. I've also installed the latest available drivers for my device, nexus 7
The same issue occurs whether I try to run on a device or on an emulator so I'm a bit lost as to where to start the troubleshooting...
You might try to set higher memory limitations in your Eclipse.ini. The actual launch of your application requires more memory due to building the APK, where before that point of time only the Java compiler was involved.
Additionally you may try to work around your problem by starting the AVD manually from the Android AVD manager dialog (which can be reached via one of the toolbar buttons). Then launch your app only after the emulator has been fully started.