https://kotlinlang.org logo
Title
j

Javier

08/31/2020, 4:41 PM
I am having problems with gradle lint tasks when
org.gradle.parallel = true
* What went wrong:
Execution failed for task ':app:lint'.
> Lint infrastructure error
  Caused by: java.lang.reflect.InvocationTargetException
...
 Caused by: java.lang.IllegalStateException: Another thread (Thread[Daemon worker Thread 2,5,main]) currently holds the state lock for all projects.
If I run the lint task individually for each module I have no issues, so I think both modules are running the lint task at same time and the build breaks
d

dwursteisen

08/31/2020, 7:45 PM
Which gradle version?
j

Javier

08/31/2020, 7:46 PM
6.7, I tried multiple nightly, all have the same error
d

dwursteisen

09/01/2020, 8:35 AM
I got the same issue with the 6.6. Did you try to downgradre ? We use org.gradle.parallel = true before and started to got this issue only since I bump to the 6.6. So my first trough is that it’s a gradle issue. (I still need to test too with an earlier version of gradle)
n

no

09/01/2020, 8:39 AM
you should run lint on the app module and enable check dependencies
j

Javier

09/01/2020, 8:55 AM
@dwursteisen I can't downgrade, AS canary 08 and accessors only work with 6.7 @no the problem is I don't want run
gradle lint
individually (it works) I want to run
gradle build
n

no

09/01/2020, 8:55 AM
i don't think the Android Gradle Plugin designed their build in such a way as that
gradle build
makes sense to run
but if you are seeing this as an issue, please file a bug!
j

Javier

09/01/2020, 8:58 AM
but I have a lot of only kotlin modules, and gradle build check if android modules compile too. I didn't check if tests run (not androidTest, just test) but I think they run
I will file a bug