Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio omits breakpoints

When I'm trying to debug application using android studio, I set some breakpoints in the IDE and after starting the debugger I've got an info on every single one breakpoint (in the baloon):

Warning : No executable code found at line ...

It looks like the message appears when the application reaches first BP. Just to be clear - I have executable code in those lines like String s = "asd";

like image 664
piotrpo Avatar asked Nov 20 '13 13:11

piotrpo


3 Answers

In my case a Build - Clean Project did help.

like image 177
tmanthey Avatar answered Nov 20 '22 22:11

tmanthey


set the minifyEnabled to false:

  1. From the project section select the project
  2. Right click on project and click open module settings
  3. select the module you are running and from Build Type set the Minify Enabled to false
like image 13
karma Avatar answered Nov 20 '22 21:11

karma


Try to insert the next snippet code into the android{} block on the app build.gradle file:

    buildTypes {
        release {
            minifyEnabled true 
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            minifyEnabled false //<---- THIS FIX THE PROBLEM
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'pro
guard-rules.pro'
        }

    }
like image 7
totem_motorist Avatar answered Nov 20 '22 21:11

totem_motorist