@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.