Fixed
Status Update
Comments
xo...@google.com <xo...@google.com> #2
A sketch for fixing this is at
er...@google.com <er...@google.com>
xo...@google.com <xo...@google.com>
an...@google.com <an...@google.com> #3
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Iguana | 2023.2.1 Canary 12
- Android Gradle Plugin 8.3.0-alpha12
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
The
UnusedResourcesProcessor
for removing unused resources from the project might be informed (from Lint) that there is an issue related to a Gradle build file.If that Gradle build file is in a directory whose name is equal to one of the
ResourceFolderType
names, or which begins with one of those names followed by a hyphen, theUnusedResourcesProcessor
will delete the Gradle build file rather than removing the appropriateresValues
entry. (This is becausegetFolderType()
will somewhat spuriously return aResourceFolderType
rather thannull
).