This is an interesting Eclipse bug. I use:
Version: Indigo Edition
Build ID: 20110615-0604
Out of nowhere today, I set a breakpoint in my Android app on Eclipse. When it reaches the code, debug (dalvik JVM) aborts and crashes:
Tried to execute the code in an unprepared class (followed by the class name)
If I do not set a breakpoint, it will work without problems. I searched through Google but found nothing.
Another note, when I set this breakpoint, it does not matter, it may just be the first line of the onClick () function or elsewhere. The moment the application β pauses β due to a breakpoint, it will work.
source share