Skip to content
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

Execution failed for task ':assets_audio_player_web:compileDebugKotlin'. #854

Open
armagangok opened this issue Nov 8, 2024 · 10 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@armagangok
Copy link

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

@armagangok armagangok added the bug Something isn't working label Nov 8, 2024
@armagangok armagangok changed the title 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 Execution failed for task ':assets_audio_player_web:compileDebugKotlin'. Nov 8, 2024
@pyaehein
Copy link

pyaehein commented Nov 9, 2024

+1

4 similar comments
@ElemenzaDev
Copy link

ElemenzaDev commented Nov 18, 2024

+1

@joveptesg
Copy link

+1

@a-rfl
Copy link

a-rfl commented Nov 20, 2024

+1

@SigosAmigo
Copy link

+1

@Rupakpoddar
Copy link
Contributor

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

@vlowe85
Copy link

vlowe85 commented Dec 17, 2024

+1

Any workaround?

@Christiaan-Mathu
Copy link

Christiaan-Mathu commented Dec 18, 2024

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.1

After:

dependencies:
  assets_audio_player:
    git:
      url: https://github.com/Rupakpoddar/Flutter-AssetsAudioPlayer

@Mamun-Lab
Copy link

I am facing the same issue. How to solve it?

@vlowe85
Copy link

vlowe85 commented Dec 19, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests