'Android Studio: no executable code found at line X on every line
Every breakpoint I place, not matter what's on the line, is giving the error "no executable code found at line X". I have not changed anything since the last time I was able to debug. I experienced this yesterday but after invalidating caches and restarting, plus restarting my mac, fixed the issue. However today I am having no such luck, I also can't seem to find anyone else having this problem
Solution 1:[1]
add this in your gradle
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt')
Solution 2:[2]
Add this to your gradle file. It worked for me.
debuggable true
minifyEnabled false
shrinkResources false
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | oo7 |
| Solution 2 | Vijay E |
