Status Update
Comments
ma...@gmail.com <ma...@gmail.com> #2
Also possibly related to
ya...@google.com <ya...@google.com>
je...@google.com <je...@google.com>
sp...@google.com <sp...@google.com> #4
This has been fixed in the Jellyfish branch. The fix will be included in AS Jellyfish RC1.
av...@grubhub.com <av...@grubhub.com> #5
sp...@google.com <sp...@google.com> #6
From #1, sounds like it was not an issue in AS Hedgehog.
ge...@gmail.com <ge...@gmail.com> #7
So, is this not going to be fixed for Iguana? Are we supposed to never use "Make Project" or similar in Iguana?
ma...@gmail.com <ma...@gmail.com> #8
Apply the workaround in the ticket if you're using Iguana. Remove the workaround after you've migrated to Jellyfish.
ge...@gmail.com <ge...@gmail.com> #9
The workaround doesn't work for me. For starters, my file is settings.gradle
, i.e. Groovy. In addition, I don't use the buildSrc
directory.
I have seen other workarounds of defining an empty testClasses
task, but we have several KMP modules in our app.
Do I really have to jump through all these hoops when it is clearly an issue on Iguana's side?
sp...@google.com <sp...@google.com> #10
The workaround doesn't work for me. For starters, my file is settings.gradle, i.e. Groovy.
Here is the equivalent groovy code:
gradle.startParameter.excludedTaskNames.addAll([":buildSrc:testClasses"])
In addition, I don't use the buildSrc directory
If it's unused, can you delete it? That should also resolve the issue.
ge...@gmail.com <ge...@gmail.com> #11
Actually, there is no buildSrc
in our repo, so there is nothing to delete and the equivalent groovy code doesn't work either.
What did work was adding the following to our top-level build.gradle
file:
allprojects {
// ...
tasks.register('testClasses')
}
Maybe because my issue is better described by testClasses
tasks that are called (and fail) with Iguana.
In fact, I think that Iguana not only added those testClasses
tasks in its "Make Project" task execution list, but also others that it shouldn't like: linkDebugFrameworkIosArm64
(I build on an MacBook with Apple Silicon). In other words, for KMP projects, the list of tasks being build by Iguana for "Make Project" contains many tasks that shouldn't (and Hedgehog didn't).
sp...@google.com <sp...@google.com> #12
Thanks. Yes, it looks like you're hitting
This issue (involving buildSrc) is different than those issues. The root cause of this issue is
Unfortunately, unlike this issue,
ca...@gmail.com <ca...@gmail.com> #13
sp...@google.com <sp...@google.com> #14
This has been fixed in Jellyfish RC 1 and Koala Alpha 04
an...@google.com <an...@google.com> #15
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 | 2024.1.1 Canary 4
- Android Gradle Plugin 8.5.0-alpha04
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!
Sa...@stackflow.org <Sa...@stackflow.org> #16
sp...@google.com <sp...@google.com> #17
Re #16, can you describe how to repro the issue on Koala 2024.1.1 Canary 4 and/or give some more details so I can attempt to repro on my side?
ke...@bose.com <ke...@bose.com> #18
sp...@google.com <sp...@google.com> #19
Re #18, unfortunately not
ho...@gmail.com <ho...@gmail.com> #20
sp...@google.com <sp...@google.com> #21
This issue is fixed in Jellyfish, which was released last week.
jo...@tmediatech.com <jo...@tmediatech.com> #22
I'm still seeing this in stable Jellyfish with AGP v8.4.0..
jo...@tmediatech.com <jo...@tmediatech.com> #23
Adding this to my settings.gradle.kts
solved it just now.
gradle.startParameter.excludedTaskNames.addAll(listOf(":build-logic:convention:testClasses"))
Source:
sp...@google.com <sp...@google.com> #24
Re: #22 and #23, can you please file a new bug with steps to reproduce the issue and link it here?
This issue is specifically for the case involving buildSrc
. If you are seeing a similar error message without buildSrc
, and it's not a KMP project (
lo...@gmail.com <lo...@gmail.com> #25
t....@gmail.com <t....@gmail.com> #26
I have the same issue on Android Studio Ladybug | 2024.2.1.
Excluding testClasses
task has helped for now, but it seems like this bug is still there.
sp...@google.com <sp...@google.com> #27
Re: #26, can you please file a new bug with steps to reproduce the issue and link it here?
de...@workerbase.com <de...@workerbase.com> #28
I'm still facing this issue in Android Studio Ladybug Feature Drop | 2024.2.2 with AGP 8.8.0 and Gradle 8.10.2
Still using this workaround since Android Studio Iguana | 2023.2.1 Patch 1 and 2 with Gradle 8.4 and AGP 8.3.1:
In top level settings.gradle
add:
gradle.startParameter.excludedTaskNames.addAll([":gradle:testClasses"])
See Gradle issue here:
sp...@google.com <sp...@google.com> #29
Re: #28, this bug and its fix are specific to the ":buildSrc:testClasses"
task, so it sounds like you're hitting a different bug. Can you file a separate issue with repro steps?
Description
DESCRIBE THE ISSUE IN DETAIL:
Beginning with Android Studio Iguana, my project fails to build with an "Unable to make progress running work" error. It appears to be due my project using buildSrc - attached is a bare bones project that reproduces this issue.
STEPS TO REPRODUCE:
./gradlew :app:clean :buildSrc:clean :app:assembleDebug :app:assembleDebugUnitTest :app:assembleDebugAndroidTest :buildSrc:assemble :buildSrc:testClasses
This appears to be related to https://issuetracker.google.com/issues/290954881
I could not create this issue in the same project. I have also created a corresponding Gradle ticket - https://github.com/gradle/gradle/issues/28407 - but it is not clear that this is really a gradle issue. I'm not sure why Iguana and later is calling
:buildSrc:testClasses
, while Hedgehog and earlier does not.I have been able to work around this issue by adding:
gradle.startParameter.excludedTaskNames.addAll(listOf(":buildSrc:testClasses"))
in my top levelsettings.gradle.kts