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

Not building with AGP 8 #1469

Closed
emmaxCreative opened this issue Nov 2, 2023 · 0 comments · Fixed by #1479
Closed

Not building with AGP 8 #1469

emmaxCreative opened this issue Nov 2, 2023 · 0 comments · Fixed by #1479
Assignees
Labels
enhancement New feature or request

Comments

@emmaxCreative
Copy link

emmaxCreative commented Nov 2, 2023

Describe the bug
Unable to build.

Execution failed for task ':stripe_android:compileDebugKotlin'.

> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
  Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

To Reproduce
Try to run an app with:

kotlin: 1.8.22
Android Gradle Plugin version 8.1.2
Gradle Wrapper: distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip

Expected behavior
The build to complete

Smartphone / tablet

  • Pixel 6 Emulator
  • OS: Android 13
  • Package version: 9.5.0+1
  • Flutter version : 3.13

Additional context
No change when setting compile option or kotlin option to whatever. Also following the Gradle documentation with toolchains and all this complicated stuff did not help;

compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
 }
@emmaxCreative emmaxCreative added the needs triage Needs triage label Nov 2, 2023
@remonh87 remonh87 self-assigned this Nov 13, 2023
@remonh87 remonh87 added enhancement New feature or request and removed needs triage Needs triage labels Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants