Skip to content

Commit

Permalink
Fix Inconsistent JVM-target compatibility error (#1492)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
davidmigloz and remonh87 authored Nov 28, 2023
1 parent 41540fc commit 1c2622f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/stripe_android/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ android {
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
jvmTarget = '17'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
Expand Down

0 comments on commit 1c2622f

Please sign in to comment.