Status Update
Comments
hu...@google.com <hu...@google.com>
bi...@google.com <bi...@google.com>
bi...@google.com <bi...@google.com> #2
Thanks for the report! I agree with what your suggestion of replacing it with @OutputDirectory, but a little surprised that why our tests didn't catch it. Can you share a sample project that reproduce this issue?
de...@squareup.com <de...@squareup.com> #3
I wasn't able to reproduce it since I couldn't get it to generate the desugar_lib_external_file_lib_keep_rules
intermediate directory in my reproducer project.
I tried to match my gradle config as best as possible to the original project that I saw this issue in, but it's still not causing that directory to be created when bundling the app.
bi...@google.com <bi...@google.com> #4
I am able to reproduce it if I run the build twice in a row. working a fix for it which should be available for 8.0. (it is too late for 7.4)
eb...@netflix.com <eb...@netflix.com> #6
Thanks for back-porting the fix to 7.4, we have the same issue. Any idea when will AGP 7.4.2 be released?
Description
DESCRIBE THE ISSUE IN DETAIL:
In AGP 7.4+, the this commit ), however it is still marked as an
outputKeepRules
property inDexingFileDependenciesTask
was changed from aRegularFileProperty
to aDirectoryProperty
(inOutputFile
.This causes a configuration error as gradle expects this property to be a file, but finds a directory instead. It should be marked with `OutputDirectory.
Configuration error:
This property appears to have been removed in AGP 8.1, but this issue still affects both AGP 7.4 and 8.0.
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: --
Version of Gradle Plugin: 7.4, 8.0-beta02
Version of Gradle: 7.6
Version of Java: --
OS: --