Fixed
Status Update
Comments
ac...@google.com <ac...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com>
cm...@google.com <cm...@google.com> #2
Thanks for the report:
Working theory - think this is a side effect of java.nio.file.Path
, which implements iterable returning an iterator of its path components, which is not what is expected here, I suspect we also need to special case Path.
Original reporter - does adding toFile
i.e.
java.srcDirs(objPath.resolve("Debug/android/src").toFile())
work round the issue for you?
[Deleted User] <[Deleted User]> #3
Yep. That works around the problem. Thanks!
Description
DESCRIBE THE ISSUE IN DETAIL:
This project has a Gradle module who's main responsibility is packaging non-trivial library code such that it is consumable by the app's build. This is the only place in our project where source sets are customized. Commenting out this code results in a working build, but the app fails at runtime due to the missing library code. This code worked in AGP 7.3.1 and earlier.
STEPS TO REPRODUCE:
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: Electric Eel Version of Gradle Plugin: 7.4.0 Version of Gradle: 7.5, 7.5.1, 7.6 Version of Java: 11, 17 OS: macOS 12