-
Notifications
You must be signed in to change notification settings - Fork 76
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
🐛 JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (21) #1824
Comments
Hello! Thank you for filing an issue. Please include relevant logs or detailed description for faster resolutions. We really appreciate your contribution! |
The issue is faced while taking the build for Android. This issue occurred after updating the Flutter version warning: [options] source value 8 is obsolete and will be removed in a future release FAILURE: Build failed with an exception.
Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
BUILD FAILED in 20s |
I'm not sure they even monitor these issues anymore. I have been waiting 3 weeks for an answer to my build issue. |
@AzharKV, I have contacted support within the dashboard, and I'm waiting for a reply. To make sure it wasn't our code, I created a new project and only added the 100ms flutter component. I get the same error message you are getting. So it is their code, not ours. |
Thanks @pqthealth. |
@AzharKV not sure if you fixed it or not but it was settings inside flutter after I upgraded flutter and dart. I ran the following command, in terminal, to make sure flutter was pointing toward the right JDK version. flutter config --jdk-dir <path_to_jdk> I hope this helps if you haven't already found a solution. |
Description
Execution failed for task ':hmssdk_flutter:compileDebugKotlin'.
even added these line, facing the issue
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
distributionUrl=https://services.gradle.org/distributions/gradle-8.10.2-bin.zip
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.8.0" apply false
id "org.jetbrains.kotlin.android" version "2.0.20" apply false
id "com.google.gms.google-services" version "4.4.1" apply false
id "com.google.firebase.crashlytics" version "2.9.9" apply false
id 'com.google.firebase.firebase-perf' version '1.4.2' apply false
id 'com.android.library' version '8.8.0' apply false
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}
100ms Flutter Version
1.10.6
Steps to reproduce
flutter run for android only
Expected results
Unable to run and take build
Code example, screenshot, or link to a repository
Code sample
Logs
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: