Android Studio Iguana | In the 2023.2.1 Canary 7 version, this error occurs at the end of the build.
For example, it can be verified that this is happening in the Now Android project created by Google.
Project
The relevant bug has been fixed in previous versions, but it continues in experimental versions.
Issue Link
The Error Message
FAILURE: Build failed with an exception.
* What went wrong:
Unable to make progress running work. There are items queued for execution but none of them can be started
Is there a known solution?
According to these references, there is a workaround. (issuetracker - medium)
Adding the following line to the top-level gradle settings file fixed the problem for me.
// If the project has buildSrc module.
gradle.startParameter.excludedTaskNames.addAll(listOf(":buildSrc:testClasses"))
// If the project has build-logic module.
gradle.startParameter.excludedTaskNames.addAll(listOf(":build-logic:testClasses"))
// If the project has build-logic module with convention module. (for example: https://github.com/android/nowinandroid/tree/main/build-logic)
gradle.startParameter.excludedTaskNames.addAll(listOf(":build-logic:convention:testClasses"))
Thanks to jaga for the reference link.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With