-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hundreds of exceptions when running unit tests #1688
Comments
Switching to JDK 17 solved this. Just in case it's useful for anyone else, I use https://sdkman.io/ so switching between JDK versions is as easy as:
|
We're using I don't think asking everyone to use JDK 17 should be our solution here, there are good reasons to run the latest JDK versions: https://dev.to/cdsap/nowinandroid-builds-with-gradle-85-and-jdk-21-7fp |
I'd suggest adopting toolchains. I think AGP can still be problematic. Is that this #1392? |
For this issue specifically, we should just update JaCoCo - adopting a toolchain to force the JDK being used to 17 would hide these errors, but it would come back if we update the JDK being used at some point in the future. Whether or not to use toolchains is a separate issue. |
It's available on
|
Steps to repro:
./gradlew testDemoDebug
Expected
Actual
Possibly relevant extra information:
From the stack trace it looks related to Jacoco
The text was updated successfully, but these errors were encountered: