Fixed
Status Update
Comments
dn...@google.com <dn...@google.com>
je...@google.com <je...@google.com>
im...@google.com <im...@google.com> #2
It does show up in 'Android Private Libraries' (this is new?) though as android-support-v4.jar
lu...@google.com <lu...@google.com> #3
Workaround(?): Go to Properties->Order and export on the app project and check 'Android Private Libraries'.
lu...@google.com <lu...@google.com> #4
This needs to be done all library projects as well, so that the app project gets the full set of needed jars.
Description
Version of Gradle Plugin: 7.0.0-alpha13
Version of Gradle:6.8.3
Version of Java: openjdk 11.0.9
After upgrading AGP to alpha13, we cannot disable AGP's built-in resource optimization:
Previously, we used the following code for our own optimization, because AGP could not meet our needs.
AGP does not save the map when shortening the resource path, which makes us have to disable it, and also, AGP cannot do other optimizations like sparse encoding. After alpha13. AGP forces enable
shorten-resource-paths
, but aapt2 shortening twice will break the apk to make it impossible to open. If we stop shortening the resource paths ourselves, AGP won't save the resource path shortening map, there is no solution anyway. We want AGP to support all the parameters in the aapt2 optimization (which is already partially supported inside AGP, but does not allow us to configure it), and until then, stop forcing enabledshorten-resource-paths
.