I'm getting this error even though my code compiles, I can even run my unit tests from the IDE. I'm using Android Studio 4.2 beta 6.
I have another computer using the same version of AS and I don't get the error
Any idea?
l
LeoColman
03/16/2021, 5:55 PM
That's a classic case of "Invalidate and restart" and see what happens
b
Benoît
03/16/2021, 6:23 PM
Already did that, I reinstalled my JDK, reinstalled Android Studio, and of course, invalidate and restart. And Gradle clean
m
Mikhail Galanin
03/16/2021, 7:13 PM
once I solved this by performing rm -fr ~/.gradle/cache (or where Gradle cache is on your box)
b
Benoît
03/16/2021, 7:22 PM
Yes I've also tried this
Benoît
03/16/2021, 7:44 PM
So I've fixed it by doing everything at once, removing .gradle folders in the project and at the root, invalidate caches and restart. Thanks everyone