You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgraded to gradle 8.3 and targetSdk 34 to follow along with the rest of the community I'm getting the following error when running Flutter run:
Execution failed for task ':assets_audio_player_web:compileDebugKotlin'.
Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17).
It is a bit absurd that this stops my flutter run. Gradle is a mess combined with Java/Kotlin jungle.
Small code to reproduce
compileOptions {
// Flag to enable support for the new language APIs//coreLibraryDesugaringEnabled true// Sets Java compatibility to Java 17
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget ='17'
}
sourceSets {
main.java.srcDirs +='src/main/kotlin'
}
defaultConfig {
buildToolsVersion "35-rc2"
applicationId "com.xxx.xxx"
minSdk 23
targetSdk flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
if (publish) {
ndk {
debugSymbolLevel 'SYMBOL_TABLE'
}
resConfigs "en","sv","it","ar","de","es","fr","no","pl","ru","uk","sr"
}
}
The text was updated successfully, but these errors were encountered:
Flutter Version
My version : 3.19.6
Lib Version
My version : master
Platform (Android / iOS / web) + version
Platform : Android 34
Describe the bug
When upgraded to gradle 8.3 and targetSdk 34 to follow along with the rest of the community I'm getting the following error when running Flutter run:
Execution failed for task ':assets_audio_player_web:compileDebugKotlin'.
It is a bit absurd that this stops my flutter run. Gradle is a mess combined with Java/Kotlin jungle.
Small code to reproduce
The text was updated successfully, but these errors were encountered: