Skip to content

Execution failed for task ':assets_audio_player_web:compileReleaseKotlin'. #869

Open
@kareenajain12

Description

@kareenajain12

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.'"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions