Skip to content

Execution failed for task ':flutter_document_picker:compileReleaseKotlin'. Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlin' (17). #49

@tsu-kotake

Description

@tsu-kotake

Build fails in Flutter sdk 3.19.5.
This can be avoided by writing the following to build.gradle, but since it requires downloading the package source and including it in the project, I would like to request official support for the package.

android {

compileOptions {
    sourceCompatibility JavaVersion.VERSION_17
    targetCompatibility JavaVersion.VERSION_17
}

kotlin {
    jvmToolchain(17)
}

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions