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 localhost
in 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.