Status Update
Comments
eq...@gmail.com <eq...@gmail.com> #2
There is no error with AGP 8.2.2
am...@google.com <am...@google.com>
je...@google.com <je...@google.com>
eq...@gmail.com <eq...@gmail.com> #3
This is still an issue with AGP 8.3.2. I'm stuck on 8.2.2 because of it.
eq...@gmail.com <eq...@gmail.com> #4
Same with 8.4.0
eq...@gmail.com <eq...@gmail.com> #5
Still an issue with 8.4.1
Looking through AGP source code I suspect that issue is somewhere here:
In case of regular Gradle subproject the buildId is ":" and projectPath is ":common", so replace("::", ":")
works as intended and turns "::common" to ":common".
In case if dependency from included build, the buildId is ":bencode" and projectPath is ":", which causes replace function to not do anything and the first argument of ProjectSourceSetKey constructor is ":bencode:"
eq...@gmail.com <eq...@gmail.com> #6
Is there any way I can at least somehow exclude that dependency from linting?
er...@gmail.com <er...@gmail.com> #7
I'll leave the link to my repro project on github though - in case that proves useful:
The project is a made using the AS wizard without modification and the library module is a simple java project. The java project is then included into the app using includeBuild("...").
There is a successful workflow run using 8.2.2 och failing runs using 8.3+.
sp...@google.com <sp...@google.com> #8
This has been fixed with Change-Id: I039fde226805d2593c11306caae31e310fb5a68c
.
The fix will be in AGP 8.6.0-alpha06.
an...@google.com <an...@google.com> #9
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 Koala Feature Drop | 2024.1.2 Canary 6
- Android Gradle Plugin 8.6.0-alpha06
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
DESCRIBE THE ISSUE IN DETAIL: Lint tasks fail with "Internal errorr: Could not find jar for project :includedBuild:" error, and release builds therefore don't work.
STEPS TO REPRODUCE:
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
Studio Build: Build #AI-232.10227.8.2321.11479570, built on February 21, 2024
Version of Gradle Plugin: 8.3.0
Version of Gradle: 8.6
Version of Java: 17
OS: Fedora 39