Not Able To Debug App In Android Studio

前端 未结 30 2577
小蘑菇
小蘑菇 2020-12-01 02:30

I am making an app in Android Studio, now trying to debug it through adb. When I click on the word Android and the logo on the bottom bar, logcat comes up and recognizes my

相关标签:
30条回答
  • 2020-12-01 03:18

    Another thing to be careful of (I did this so I know, duh). Be sure not to enable Proguard for debug!

    0 讨论(0)
  • 2020-12-01 03:19

    "Attach debugger to Android process" icon shoud be used in case when you set custom "android:process" in your Manifest file.
    In my case I should select suitable process and click OK button just after "Wait for debugger" dialog appears.

    0 讨论(0)
  • 2020-12-01 03:19

    In my case, i forgot minifyEnabled=true and shrinkResources=true in my debug buildType. I change these values to false, it's worked again!

    0 讨论(0)
  • 2020-12-01 03:19

    What worked for me in Android Studio 3.2.1

    Was:

    RUN -> Attach debugger to Android Process --> com.my app

    0 讨论(0)
  • 2020-12-01 03:20

    Check, if you're app-project is selected in the drop-down menu next to the debug-button. Sometimes Android Studio just resets this selection...

    0 讨论(0)
  • 2020-12-01 03:20

    This solved my problem. Uninstall app from device and run it again via Android studio.

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