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 }}
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 debug
ing it, and the break points continued to work correctly.