Skip to content

Commit 1c2622f

Browse files
Fix Inconsistent JVM-target compatibility error (#1492)
Fixes the following error: ``` * What went wrong: Execution failed for task ':stripe_android:compileDebugKotlin'. > Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17). Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation ``` Co-authored-by: Rémon <[email protected]>
1 parent 41540fc commit 1c2622f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/stripe_android/android/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ android {
3535
targetCompatibility JavaVersion.VERSION_17
3636
}
3737

38+
kotlinOptions {
39+
jvmTarget = '17'
40+
}
41+
3842
sourceSets {
3943
main.java.srcDirs += 'src/main/kotlin'
4044
}

0 commit comments

Comments
 (0)