Debugging with Android Studio stuck at “Waiting For Debugger” forever

前端 未结 29 2233
甜味超标
甜味超标 2020-12-04 08:36

UPDATE The supposed duplicate is a question on being stucking in \"Waiting For Debugger\" when executing Run, while this

相关标签:
29条回答
  • 2020-12-04 09:25

    This fixed it for me. Android Studio -> File -> Invalidate Caches & Restart...

    0 讨论(0)
  • 2020-12-04 09:25

    Open Command prompt and go to android sdk>platform-tools> adb kill-server

    press enter

    and again adb start-server

    press enter

    0 讨论(0)
  • 2020-12-04 09:26

    A similar question has been asked recently and the solution may work for some and is very quick.

    Clearing the Intellij IDEA (Android Studio) .idea directory which contains configuration information worked for me:

    1. Exit Android Studio
    2. Navigate to the project you are trying to debug
    3. Backup any files inside .idea that you modified (if your project checks any of these into VCS)
    4. Delete .idea directory
    5. Open the project in Android Studio
    0 讨论(0)
  • 2020-12-04 09:26

    Non of this solutions worked for me.

    In my case was that I was debugging an App from Intellij IDEA and at the same time with Android Studio. By just closing the Intellij IDEA and removing the app I was debugging just fixed my problem.

    0 讨论(0)
  • 2020-12-04 09:26

    As for my case, running Android Studio Canary (preview release) along with the stable version was the problem. Running multiple instances of the same Android Studio flavor was OK, but mixing them often resulted in "Waiting For Debugger".

    0 讨论(0)
  • 2020-12-04 09:27

    This solution works for me:

    turning off the USB debugging from my device settings , and then turning it on again.

    its Much quicker and easier than restart the device.

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