regulaforensics / flutter_face_api

MIT License
31 stars 14 forks source link

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

Open Abdulah-butt opened 9 months ago

Abdulah-butt commented 9 months ago

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.

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

santoshpro95 commented 7 months ago

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

VictorJava commented 7 months ago

@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 commented 3 months ago

@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