juliansteenbakker / mobile_scanner

A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD 3-Clause "New" or "Revised" License
745 stars 444 forks source link

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':mobile_scanner:compileDebugJavaWithJavac'. > error: invalid source release: 17 #996

Closed Fariqofficial closed 1 month ago

Fariqofficial commented 1 month ago

I got an error message:

"FAILURE: Build failed with an exception.

When I run my project in visual studio code, I have also used jdk version 17 but when I run it again, I still get the same error message.

Screenshot_3

KyoheiG3 commented 1 month ago

See #922 and #957.

huangsir0 commented 1 month ago

any update?

navaronbracke commented 1 month ago

As noted above, using Java 17 is required from version 4.0.0 onwards. We will document this requirement better when addressing #922

EhabSalah commented 1 month ago

Any updates?

navaronbracke commented 1 month ago

@EhabSalah There are no real updates, because there is nothing that the mobile_scanner package can do.

The only thing that we can provide is asking you to update to Java 17. If you are using the Java installation from Android Studio, update to Android Studio "Flamingo" or higher. If you are using a standalone Java version, update that Java version to Java 17. If you are using CI/CD, use a CI/CD pipeline that has Java 17 available, and enable the Java 17 version in the CI/CD settings