Are you using Robolectric ? Since Java 9 is required to run tests for API 29+, I thought of using another one
j
Ju
08/19/2020, 4:49 PM
it's just that version is the most comparable one for most work places.
🎉 1
Ju
08/19/2020, 4:49 PM
i think... from my experiences
a
Afzal Najam
08/20/2020, 7:34 AM
@tseisel I use Robolectric in unit tests by specifying a different JDK 11 for unit tests. I've only done this within Android Studio so far but I think you can use ``-Dorg.gradle.java.home=/path_to_jdk_directory` ` to run gradle with the specified JDK from command line.