I got the error when I trying to convert signing in apk. before it was working. after adding the buildTyper it's not working. can anyone help me with this issue? or anything did wrongly?
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
resValue "string", "google_maps_key", "AIzaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
debuggable true
multiDexEnabled true
signingConfig signingConfigs.Able
jniDebuggable true
renderscriptDebuggable true
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
resValue "string", "google_maps_key", "AIzaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
The approved solution defeats the purpose of having a smart Gradle build process which compiles and links only the required code. If every time this error occurs the solution is to stop and delete the build you are killing productivity.
I get this error about 1 out of every 10 builds.
My quick fix - is within Android Studio - open the Terminal panel (typically bottom of studio). Run shell command
rm -rf build/output/apk
This always works - but still is a big pain to do every 10 builds. I have had this problem for the last year, so multiple OS updates, multiple Studio updates, etc.
Wish they would fix this. I have tried to disable "incremental building", but no impact on this problem.
gradle.properties
org.gradle.parallel=false
org.gradle.caching=false
org.gradle.configureondemand=false
build.gradle
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.incremental = false
}
}