Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Inconsistent JVM-target compatibility error #1492

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

davidmigloz
Copy link
Contributor

After upgrading Gradle to 8.4 and AGP to 8.1.4 (coming from 7.x for both dependencies), I started getting 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

It seems to be caused because stripe_android doesn't declare the kotlinOptions.jvmTarget.

davidmigloz and others added 2 commits November 20, 2023 18:09
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
```
@remonh87 remonh87 merged commit 1c2622f into flutter-stripe:main Nov 28, 2023
2 of 4 checks passed
guilherme-v pushed a commit to guilherme-v/flutter_stripe that referenced this pull request Dec 4, 2023
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants