Flutter-AssetsAudioPlayer
Flutter-AssetsAudioPlayer copied to clipboard
Execution failed for task ':assets_audio_player_web:compileDebugKotlin'.
Flutter Version 3.24.4
My version :
Lib Version
My version :
Platform (Android / iOS / web) + version
Platform :
Describe the bug
- What went wrong: Execution failed for task ':assets_audio_player_web:compileDebugKotlin'.
Error while evaluating property 'compilerOptions.jvmTarget' of task ':assets_audio_player_web:compileDebugKotlin'. Failed to calculate the value of property 'jvmTarget'. > Unknown Kotlin JVM target: 21
+1
+1
+1
+1
+1
Note: This change will not work for Flutter web platforms.
Try changing the following in pubspec.yaml:
Before:
dependencies:
assets_audio_player: ^3.1.1
After:
dependencies:
assets_audio_player:
git:
url: https://github.com/Rupakpoddar/Flutter-AssetsAudioPlayer
+1
Any workaround?
I had the same issue, and can confirm that setting the dependency to @Rupakpoddar's branch does work as a temporary fix.
Note: This change will not work for Flutter web platforms.
Try changing the following in
pubspec.yaml:Before:
dependencies: assets_audio_player: ^3.1.1After:
dependencies: assets_audio_player: git: url: https://github.com/Rupakpoddar/Flutter-AssetsAudioPlayer
EDIT
This should be fixed in https://github.com/florent37/Flutter-AssetsAudioPlayer/pull/858, just waiting for new release, but as temporary fix can point to the repo branch
dependencies:
# Can be changed back once a new version is released after 3.1.1
assets_audio_player:
git:
url: https://github.com/florent37/Flutter-AssetsAudioPlayer
I am facing the same issue. How to solve it?
I think Android Studio Ladybug updated JDK to 21 for me, I downloaded JDK 17 and set flutter to use it. Now it builds ok again without having to update gradle etc.
I think Android Studio Ladybug updated JDK to 21 for me, I downloaded JDK 17 and set flutter to use it. Now it builds ok again without having to update gradle etc.
Thanks man !! This helped me !!
Not found
url: https://github.com/florent37/Flutter-AssetsAudioPlayer