https://kotlinlang.org logo
#android
Title
# android
j

Ju

08/19/2020, 4:34 PM
1.8
t

tseisel

08/19/2020, 4:46 PM
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
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.