Reputation: 587
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.
Upvotes: 1
Views: 4231
Reputation: 587
testcoverageenabled = true was the problem. Changed to false and now debuggable=false working.
Upvotes: 8
Reputation: 587
My personal observation. I tried the same in sample hello word app, then debuggable=true property is not added to android manifest.
Upvotes: 0