cfig / Android_boot_image_editor

Parsing and re-packing Android boot.img/vbmeta.img/payload.bin, supporting Android 15
Apache License 2.0
995 stars 227 forks source link

FAILURE: Build failed with an exception #104

Closed DocMAX closed 1 year ago

DocMAX commented 1 year ago
docmax@zeus: ~/github/Android_boot_image_editor $ ./gradlew unpack

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':avbImpl'.
> Could not open proj generic class cache for build file '/home/docmax/github/Android_boot_image_editor/avbImpl/build.gradle' (/home/docmax/.gradle/caches/7.5/scripts/1go45a0q9118il5u7ehojev8l).
   > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

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

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5/userguide/command_line_interface.html#sec:command_line_warnings
cfig commented 1 year ago

Hi @DocMAX , Are u using java 19?

java -version

By now java 19 is not well supported in gradle(the true essence behind gradlew wrapper). Java 17 is the latest java release I've tried.

DocMAX commented 1 year ago

docmax@zeus: ~ $ java --version openjdk 19.0.1 2022-10-18 OpenJDK Runtime Environment (build 19.0.1+10) OpenJDK 64-Bit Server VM (build 19.0.1+10, mixed mode)

ok thanks