How to resolve “Waiting for Debugger” message?

前端 未结 30 1979
眼角桃花
眼角桃花 2020-11-27 02:42

I have HTC Comet connected to Eclipse with SDK 2.2. I do a debug build - the application does not run; though it does get installed on the device. On the device I get this m

相关标签:
30条回答
  • 2020-11-27 03:26

    What solved the problem for me was going to: "Run"->"Attach Debugger to Android process" and then select your process.

    You do this in Android Studio.

    0 讨论(0)
  • 2020-11-27 03:27

    I tried all the solutions above, it fixes the issue sometimes, but still from time to time I happened to get stuck with the "Waiting for the debugger to attach" message box.

    The final solution in my case was to unplug all the Android devices but the one I want to debug on. I don't know which one is the culprit: the Nexus 7 running JB 4.2, the HTC One X running ICS, the HTC Desire S running Gingerbread, or the combintation of the 3, but as soon as I only have one device plugged in, it runs smooth as silk.

    0 讨论(0)
  • 2020-11-27 03:27

    Android Studio 1.2.2 on Mac OS 10.10 Same problem as others have reported. I closed Android Studio, then checked from command line in terminal:

    ps -efw|grep -i android

    This reported a java process (.gradle/daemon) associated with Android Studio. I killed this process, restarted Android Studio, and the problem went away.

    0 讨论(0)
  • 2020-11-27 03:28

    disable you developer option in your phone.

    Settings > Developer option > Disable

    This worked for me, when i tried to use my application without debugging it.

    0 讨论(0)
  • 2020-11-27 03:30

    I ran into this problem today. After spending most of the day trying to fix it, the only thing that ended up working was to create a new workspace and import my project into it. I hope this helps someone avoid all the trouble that I went through.

    0 讨论(0)
  • 2020-11-27 03:30

    For Android Studio users I encountered this problem first time while trying to run a bare bone project just after updating my jdk location. So I stumbled across this post. In my case simple Build->Clean Project did the job.

    0 讨论(0)
提交回复
热议问题