Not Able To Debug App In Android Studio

前端 未结 30 2628
小蘑菇
小蘑菇 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:06

    
    
    

    That above code is not longer a solution. You need to enable debugging inside your build.gradle file. If you have different buildTypes make sure you set "debuggable true" in one of the build types. Here is a sample code from one of my projects.

    buildTypes {
        debug {
            debuggable true
        }
    
        release {
            debuggable false
        }
    }
    

    **I have deleted other lines inside the buildTypes which are not relevant to this question from my gradle file here.

    Also Make sure you select the correct build variant in your android studio while doing the debugging.

提交回复
热议问题