flutter_document_picker
flutter_document_picker copied to clipboard
Execution failed for task ':flutter_document_picker:compileReleaseKotlin'. Inconsistent JVM-target compatibility detected for tasks 'compileReleaseJavaWithJavac' (1.8) and 'compileReleaseKotlin' (17).
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)
}
}
This issue is a blocker now.