0

The debugger does not stop on any breakpoints. I tried clearing all breakpoints and adding them back in but I am seeing debug statements in the console.

According to this answer, Inside build.gradle for your app module, disable minifyEnable for my build variant and change it to false.

debug {
        debuggable true
        minifyEnabled false
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }


I did it also but also but still same problem.

2
  • 1
    shrinkResources true this is causing the issue Jul 18, 2019 at 8:17
  • 1
    I agree, I think you should delete this line shrinkResources true
    – RKRK
    Jul 18, 2019 at 8:20

1 Answer 1

2

Since you're in debug configuration you don't need to shrink resources or add proguard

debug {
    debuggable true
    minifyEnabled false
    shrinkResources true
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

change to

debug {
    debuggable true
    minifyEnabled false
   // shrinkResources true
  //  proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.