Status Update
Comments
dy...@google.com <dy...@google.com>
je...@google.com <je...@google.com> #2
Luke, can you chase it down with aapt2 folks and then integrate a newer version that fix the issue.
je...@google.com <je...@google.com> #3
Setting as potential blocker for 8.5 since this is a regression.
lu...@google.com <lu...@google.com> #4
Added this issue to the AGP-AAPT meeting agenda to discuss.
da...@oppo.corp-partner.google.com <da...@oppo.corp-partner.google.com> #5
any news?
lu...@google.com <lu...@google.com> #6
I'm able to reproduce the expected behaviour in AGP 7.4, I haven't checked 8.1, but safe to say it works the same.
Yes, the file doesn't appear to be created in AGP 8.5.
What seems to be happening is that when the additionalArguments are set for --emit-ids, the build/intermediates/stable_resource_ids_file/<build variant>/stableIds.txt
is always used regardless of what is set.
As a workaround the file is generated to build/intermediates/stable_resource_ids_file/<build variant>/stableIds.txt
and could be copied where needed. This file is identical to using emit-ids. For this reason I am downgrading this issue to P2, as the file can be copied to the desired location as a workaround.
Description
Since AGP 8.2.0
aapt2
--emit-ids
parameter stopped working.My
build.gradle.kts
configuration:When I am using AGP 8.1.0 the
stable-ids.txt
is created and updated on every app build. When updating the AGP to 8.2.0 the file is no longer created.--stable-ids
parameter still works as expected.Studio Build: Android Studio Iguana | 2023.2.1 Patch 2 Version of Gradle Plugin: >= 8.2.0 Version of Gradle: 8.4 Version of Java: 17 OS: MacOS