2

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

pJeffJones
  • 55
  • 2
  • 12
  • Please take a look [here](https://stackoverflow.com/questions/11591662/cannot-set-java-breakpoint-in-intellij-idea) Or better yet take a look at this [answer](https://stackoverflow.com/questions/39855656/android-studio-gradle-breakpoint-no-executable-code-found-at-line/41374114) – Klevin Delimeta Feb 20 '18 at 11:41
  • @KlevinDelimeta I've tried this, still not working – pJeffJones Feb 20 '18 at 11:44
  • could you try re-creating the project? Also please check Instant Run under settings. That option is evil. – Klevin Delimeta Feb 20 '18 at 11:54
  • @KlevinDelimeta instant run truly is evil, I've had it disabled for a long time. Is there a quick way to recreate? This is on a production app with a very large codebase – pJeffJones Feb 20 '18 at 12:02
  • I would say Clean->Rebuild, but you already did that. So no. There is no quick way. But it shouldn't take long for you to re-create it like a new project. Re-make the project and build it with Gradle again and hope the problem will go away(which i believe it will). At last, there is this other way, on which you try changing every setting file, but you know, it's not recommended :P. – Klevin Delimeta Feb 20 '18 at 12:09

2 Answers2

0

add this in your gradle

        debuggable true
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt')
oo7
  • 109
  • 10
0

Add this to your gradle file. It worked for me.

debuggable true
minifyEnabled false
shrinkResources false
Vijay E
  • 829
  • 10
  • 14