1

debuggable=true in release mode apk. When I tried to hard code this property I am getting below error

"Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one".

So I updated build.gradle as below,

 buildTypes {
        release {
            minifyEnabled true
            debuggable false
            testCoverageEnabled = true
            proguardFiles getDefaultProguardFile('proguard-android.txt'),
                    'proguard-rules.pro'
            signingConfig signingConfigs.release
        }
        debug {
            testCoverageEnabled = true
            minifyEnabled false
            debuggable true

    }
}

But nothing seems working. What I am doing wrong? I am using Android Studio 2.2.2 and I have few flavors defined in build.gradle.

Mangesh Kadam
  • 587
  • 5
  • 19

2 Answers2

8

testcoverageenabled = true was the problem. Changed to false and now debuggable=false working.

Mangesh Kadam
  • 587
  • 5
  • 19
0

My personal observation. I tried the same in sample hello word app, then debuggable=true property is not added to android manifest.

Mangesh Kadam
  • 587
  • 5
  • 19