Android studio: debug application on device

后端 未结 9 1476
太阳男子
太阳男子 2020-12-10 10:45

I have difficulties with with debugging at Android Studio. After trying to launch application in debug mode device show alert with \"Waiting For Debugger\" title that never

相关标签:
9条回答
  • 2020-12-10 11:34

    Remove those lines related to debugging. When you launch an application from Android Studio it is signed with a debug key. Any debugging information you need can be viewed in logcat from Android Studio. Also make sure you are running the latest version (help -> check for updates) I think that's where its at.

    0 讨论(0)
  • 2020-12-10 11:34

    I'm struggling with similar issue every day and as restarting the studio or the device is pretty time consuming (and sometimes even does not work), I was trying many things and by coincidence I found an awkward (but working) solution.

    When you are in the situation when you hit debug button in Android Studio, the studio says it's connected and the device says: Waiting for Debugger, but the device waits forever, do this:

    • In Android Studio, hit the 'Edit Configurations' pop-up button
    • Once the Run/Debug Configurations dialog opens, the debug process starts!

    Works like a miracle!

    0 讨论(0)
  • 2020-12-10 11:36

    also try restarting the device - that worked for me when I had the same issue

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