Unable to make progress running work - Android Studio
Asked Answered
O

2

14

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?

Ostmark answered 12/10, 2023 at 8:48 Comment(1)
Some one has narrowed down the issue and a workaround. And for those who stumble here, please do upvote (+1 on the top) in issuetracker.google.com/issues/328871352Kidderminster
C
7

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.

Callas answered 14/4 at 22:41 Comment(1)
Oh wow.. I've been having this issue for a couple of months now. this worked for me, but the question is why?Magnesite
I
0

In my case the problem was empty build folders. Basically, I originally had a module x. Then I created :x:api and :x:impl submodules on branch A. On a completely independent branch B (which should have had module X in the old structure), I had :x:api and x:impl modules but they were empty.

Solution: I deleted those empty files. I added this plugin to the module's gradle file:

plugins {
  id 'base'
}
Incase answered 7/6 at 16:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.