Failed unpacking boot.img
keren-gonen-wdc opened this issue · 7 comments
I am using Ubuntu 20.04.
I installed all the pre-reqs according to the readme.
Using Android14 boot image, I get the following (also added the debug output) -
fail.log
Configure project :lazybox
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
- What went wrong:
A problem occurred configuring project ':lazybox'.
Failed to calculate the value of task ':lazybox:compileJava' property 'javaCompiler'.
Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=11, vendor=any, implementation=vendor-specific} for LINUX on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.
- Try:
Learn more about toolchain auto-detection at https://docs.gradle.org/8.7-rc-3/userguide/toolchains.html#sec:auto_detection.
Learn more about toolchain repositories at https://docs.gradle.org/8.7-rc-3/userguide/toolchains.html#sub:download_repositories.
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.
==============================================================================
2: Task failed with an exception.
- What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@7ce0f4ec of type BuildFlowService.Parameters
A problem occurred configuring project ':lazybox'.
> Failed to calculate the value of task ':lazybox:compileJava' property 'javaCompiler'.
> Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=11, vendor=any, implementation=vendor-specific} for LINUX on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.
- Try:
Learn more about toolchain auto-detection at https://docs.gradle.org/8.7-rc-3/userguide/toolchains.html#sec:auto_detection.
Learn more about toolchain repositories at https://docs.gradle.org/8.7-rc-3/userguide/toolchains.html#sub:download_repositories.
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.
Thanks
Hi,
Do you have a proper jdk installed?
log says:
Path for java installation '/usr/lib/jvm/openjdk-17' (Common Linux Locations) does not contain a java executable
Did you try "sudo apt install openjdk-17-jdk" ?
Just tried the install command, but I get this - openjdk-17-jdk is already the newest version (17.0.10+7-1~20.04.1)
I am having the same issue
❯ ./gradlew unpack
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
- What went wrong:
A problem occurred configuring project ':lazybox'.
Failed to calculate the value of task ':lazybox:compileJava' property 'javaCompiler'.
Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=11, vendor=any, implementation=vendor-specific} for LINUX on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.
java --version
openjdk 17.0.7 2023-04-18
OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
OpenJDK 64-Bit Server VM (build 17.0.7+0-17.0.7b1000.6-10550314, mixed mode)
Hi @shaquibimdad , thanks for finding this ~
It may be caused by the improper setting in gradle build file.
Do you have a chance to try latest commit from "rc" branch?
Hi @shaquibimdad , thanks for finding this ~ It may be caused by the improper setting in gradle build file. Do you have a chance to try latest commit from "rc" branch?
I can confirm it is working fine
Thank you @shaquibimdad and @keren-gonen-wdc ~