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 ':audio_session:compileDebugJavaWithJavac' #129

Open
appu-sm opened this issue Apr 18, 2024 · 5 comments
Open

Comments

@appu-sm
Copy link

appu-sm commented Apr 18, 2024

While using this plugin in my flutter project i'm getting the error, i have seen somewhere to use compileSdkVersion less than 34, but my project requires version 34, is there a way to overcome this issue

 error: warnings found and -Werror specified

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':audio_session:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

following is my flutter doctor output

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.5, on Ubuntu 22.04.4 LTS 6.5.0-27-generic, locale en_IN)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (installed)
[✓] VS Code (version 1.88.1)
[✓] Connected device (3 available)
[✓] Network resources
@RomanSoviak
Copy link

@appu-sm did you solve this issue?

@ryanheise
Copy link
Owner

This should be fixed in the latest release.

@RomanSoviak
Copy link

@ryanheise thanks for the answer, when will it be done?🙂

@ryanheise
Copy link
Owner

By "latest release", I mean the one currently available. Are you already using 0.1.21 and still getting this error?

@RomanSoviak
Copy link

If somebody cannnot update lib to 0.1.21: you can add this line of code to gradle.properties file:
org.gradle.java.home=/Users/romansoviak/Library/Java/JavaVirtualMachines/corretto-11.0.22/Contents/Home

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants