Status Update
Comments
ch...@google.com <ch...@google.com> #2
enableUnitTestCoverage = false
enableAndroidTestCoverage false
Thinks started to work again.
But for what it is worth - the error message could have been more helpful.
ri...@google.com <ri...@google.com> #3
Well the error message is that it tried to configure jacoco task and failed, so it works for you because you disabled the feature.
So the error message is indicative of a bigger problem. Oviously, 8.2 is pretty old for us, not sure you are interested in trying 8.8.
The easiest would be to have a project reproducing the issue, if that's possible, we'll look into it.
li...@pinterest.com <li...@pinterest.com> #4
Unfortunately we haven't had the resources to keep things up to date for a long time - and now every possible problem is just piling up...
I'll get back once we manage to upgrade to 8.8...
ri...@google.com <ri...@google.com> #5
so do you simply need minifyEnaled true in staging?
Hung might know how this is impacted, I see that we are getting the error from:
li...@pinterest.com <li...@pinterest.com> #6
Yeah, I have minifyEnaled turned off for some other flavors or build types, I wonder if there's a bug in my gradle description file and still digging into it.
hu...@google.com <hu...@google.com> #7
This seems similar to 8.9.0-rc02
) and see if it helps.
li...@pinterest.com <li...@pinterest.com> #8
Yeah, thanks, this is very similar to the staging
, which is the build type that I am trying to compile. There is a minifyEnabled false
in another build type benchmark
that I was not building. It seems that minifyEnabled false
in the benchmark
build type caused the AGP to disable the minifyEnabled
for the staging
build type that I am building. Commenting out the minifyEnabled false
in build type benchmark
will let me compile the staging
with minifyEnabled
and shrinkResources
all enabled.
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
staging {
initWith release
}
benchmark {
initWith release
// minifyEnabled false // <<<<<<<<<< This is the cause!!!!
}
}
hu...@google.com <hu...@google.com> #9
Cool, so this might have been fixed as part of
Description
Following the guidelines fromhttps://developer.android.com/build/shrink-code?utm_source=android-studio#shrink-resources , I am trying to shrink the resources of my app but keep getting build errors.
Sharing my configuration:
Part of my app.gradle file and I have
--debug
--stacktrace
added in the build command.The failure log is in the attachment.