Flutter-AssetsAudioPlayer icon indicating copy to clipboard operation
Flutter-AssetsAudioPlayer copied to clipboard

Execution failed for task ':assets_audio_player_web:compileReleaseKotlin'.

Open kareenajain12 opened this issue 4 months ago • 1 comments

Flutter Version

My version : 3.27.2

Lib Version

My version :

Platform (Android / iOS / web) + version

Platform : Android

Describe the bug

Execution failed for task ':assets_audio_player_web:compileReleaseKotlin'.

'compileReleaseJavaWithJavac' task (current target is 1.8) and 'compileReleaseKotlin' 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

Small code to reproduce

"I created a new Flutter project and added the assets_audio_player dependency in the pubspec.yaml file. When I attempted to build the release version, the build failed with the error: 'Gradle task bundleRelease failed with exit code 1.'"

kareenajain12 avatar Jun 10 '25 04:06 kareenajain12