I could not reproduce ANR. I am using IntelliJ Idea 12, have tried it with Android 4.1.2 and 2.3.3 emulators.
But if you find that the Eclipse solution works for you, there is a way to connect to the running process in the IntelliJ debugger. First, you just “Run” the application, and then attach the debugger to it using these steps . I set a breakpoint in the onUpdate () method of the widget and it worked successfully.
source share