I am trying to debug my android application on the emulator using eclipse.
However, when the application starts up, this error comes up –
The application is waiting for debugger to attach
and the emulator hangs in that screen forever. When I click on DDMS view or debug view on eclipse, eclipse also hangs.
I have tried all these methods –
- adding
<uses-permission android:name="android.permission.SET_DEBUG_APP"></uses-permission> - adding
android:debuggable="true" - changing
the line ::1 localhost with 127.0.0.1 localhostin host configuration file (C:\Windows\System32\drivers\etc\hosts) - Making sure only 1 instance of eclipse was open
- Restarting Eclipse and windows
However, none of the above steps seem to solve the problem for me.
It would be great if someone could help me out with this.
— Edit — Sorry missed the part about it being in the emulator
(been building/debugging android apps for months and wouldn’t touch the emulator with a 10 foot pole after the first few weeks).
For your problem my guess would be that your application’s target version doesn’t fit with what your emulator is running.
Also try restarting the emulator.