Can't attach Android Studio's debugger to Android process

后端 未结 12 1147
被撕碎了的回忆
被撕碎了的回忆 2020-12-29 18:12

I can\'t attach Android Studio\'s debugger to my debuggable application process. Anyone else had this issue? Basically I can\'t get my app listed in Choose Process

12条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 19:12

    So finally I got it working, by:

    Checking 'Show all processes' checkbox!
    

    BUT as you see in the question, checkbox was on at the beginning, so there were multiple issues.

    To summarize, these are other actions to be done:

    • Kill all adb processes (use ps -x | grep adb and kill -9 [process id])
    • adb start-server in terminal
    • Reconnect device
    • adb devices (to make sure device is connected successfully)
    • Make sure Android DDMS Devices | logcat shows your app and only one device is listed.
    • Check Show all processes checkbox. See screenshot

提交回复
热议问题