Skip to content Skip to sidebar Skip to footer

Can Not Resolve Junit-jupiter-params:5.6.2 And Junit-jupiter-engine:5.6.2 With Gradle 6.1.1

I have an Android project with 2 Android modules and one pure Java module. After updating the android build tools to com.android.tools.build:gradle:4.0.0 and the gradle wrapper to

Solution 1:

The solution I have found for a similar issue (mine was with org.junit.jupiter:junit-jupiter-api) is to update the source compatibility of the tests to 1.8.

compileJava {
    sourceCompatibility = "1.7"
    targetCompatibility = "1.7"
}
compileTestJava {
    sourceCompatibility = "1.8"
    targetCompatibility = "1.8"
}

This way the production source is still compatible with 1.7 to allow the Android build.


Post a Comment for "Can Not Resolve Junit-jupiter-params:5.6.2 And Junit-jupiter-engine:5.6.2 With Gradle 6.1.1"