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
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.