Can't reach some lines debugging android app Can't reach some lines debugging android app android android

Can't reach some lines debugging android app


try to disable code shrinking in your build.gradle file. it's located in your projects root directory.Under buildTypes, make sure minifyEnabled is set to false. should look something like this:

buildTypes {    release {        minifyEnabled true        shrinkResources true        proguardFiles getDefaultProguardFile('proguard-android.txt')        signingConfig signingConfigs.release    }    debug {        debuggable true        minifyEnabled false        proguardFiles getDefaultProguardFile('proguard-android.txt')        signingConfig signingConfigs.release    }}


I faced the same issue while working on my project. I'm using Android Studio 2.0 and I solved the issue by cleaning the project.

Go to Build --> Clean project


None of the answers from the many posts on this topic worked for me. I am using AndroidStudio2.

I had been running my code using the Debug 'app' (Shift+F9) button ...

then I tried using the normal Run 'app' (Shift+F10) button, followed by the Attach debugger to Android process button, and all the red break point circles with x's turned to checks.

After I run'd it that once, I went back to debuging it, and the break points continued to work correctly.