Android studio gradle breakpoint No executable code found at line

buildTypes {

release {
    minifyEnabled true
    shrinkResources true
    proguardFiles getDefaultProguardFile('proguard-android.txt')

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

    }
}

Set minifyEnabled false in debug block in build.gradle file.

After re-creating the application using Eclipse and observing the correct behavior, I returned to Android Studio in order to check if there is any option that I missed.

After trying all the options from File -> Settings that I could, I made the conclusion that Instant Run is the evil that caused me to waste so much precious time.

I don’t understand how it is related with my problem, but after clearing all check-boxes:

enter image description here

I ended up with a code that executes the way I as a developer expect:

enter image description here

I was facing a similar issue.

I’ve tried:

  • Cleaning the Project
  • Resetting Android Studio
  • Rebuilding the project
  • Disabling the Instant Run

and it didn’t work.

All I did in the end to make it work was Ctrl+Shift++. That is the shortcut for expanding all code blocks. I just ran the project after that and it worked.

Leave a Comment