I am having problems with gradle lint tasks when `...
# gradle
j
I am having problems with gradle lint tasks when
org.gradle.parallel = true
Copy code
* 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
Which gradle version?
j
6.7, I tried multiple nightly, all have the same error
d
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
you should run lint on the app module and enable check dependencies
j
@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
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
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