Assigned
Status Update
Comments
8e...@gmail.com <8e...@gmail.com> #2
Disregard - after adding
enableUnitTestCoverage = false
enableAndroidTestCoverage false
Thinks started to work again.
But for what it is worth - the error message could have been more helpful.
enableUnitTestCoverage = false
enableAndroidTestCoverage false
Thinks started to work again.
But for what it is worth - the error message could have been more helpful.
jo...@google.com <jo...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@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.
hu...@google.com <hu...@google.com> #4
We tried bumping things up to 8.8 but that causes other problems that we need to resolve first. There was a long list of issues with name spaces and what not due to clashes across different 3rd part integrations that we have in the app.
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...
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...
Description
DESCRIBE THE ISSUE IN DETAIL:
On a large project containing about ~
100,000
resource files (xml), task:app:mergeReleaseResources
uses ~4
times more memory when theisShrinkResources
flag is enabled.Memory needs more than
40
GB with high GC activity (seeagp-is-shrink-resources-enabled.png
in attachments).Memory needs less than
12
GB (seeagp-is-shrink-resources-disabled.png
in attachments).STEPS TO REPRODUCE:
100,000
resource-files stored in2,000
gradle-subprojects and libraries;isMinifyEnabled
andisShrinkResources
) for release build type;./gradlew :app:mergeReleaseResources
gradle task.Environment
Android Studio Ladybug | 2024.2.1
8.7
8.10.2
17
Mac
More info
Is there anything I can do on my end to reduce memory usage?