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

[BR] Error: invalid source release: 17 #31

Open
Abdulah-butt opened this issue Dec 13, 2023 · 3 comments
Open

[BR] Error: invalid source release: 17 #31

Abdulah-butt opened this issue Dec 13, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Abdulah-butt
Copy link

I am using flutter latest version
Flutter 3.16.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision b0366e0a3f (7 days ago) • 2023-12-05 19:46:39 -0800 Engine • revision 54a7145303 Tools • Dart 3.2.3 • DevTools 2.28.4
`Launching lib/main.dart on ONEPLUS A6013 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_face_api:compileDebugJavaWithJavac'.

error: invalid source release: 17

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 12s
Exception: Gradle task assembleDebug failed with exit code 1
`

@Abdulah-butt Abdulah-butt added the bug Something isn't working label Dec 13, 2023
@santoshpro95
Copy link

I am also facing same issue, let me know if you fixed this

@VictorJava
Copy link

@Abdulah-butt Please update your Java build version.
I faced the same issue on javac 11.0.11 (JAVA_HOME_11_X64) while building on AppCenter.

* What went wrong:
Execution failed for task ':flutter_face_api:compileReleaseJavaWithJavac'.
> error: invalid source release: 17

I updated it to 17.0.10 (JAVA_HOME_17_X64) and the issue is gone. Feel free to check your Java version with the command javac -version

@candrawardana
Copy link

@Abdulah-butt Please update your Java build version. I faced the same issue on javac 11.0.11 (JAVA_HOME_11_X64) while building on AppCenter.

* What went wrong:
Execution failed for task ':flutter_face_api:compileReleaseJavaWithJavac'.
> error: invalid source release: 17

I updated it to 17.0.10 (JAVA_HOME_17_X64) and the issue is gone. Feel free to check your Java version with the command javac -version

i'm facing the issue, and no, it still there

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

No branches or pull requests

4 participants