Android_boot_image_editor icon indicating copy to clipboard operation
Android_boot_image_editor copied to clipboard

./gradlew: No such file or directory

Open GH228 opened this issue 2 years ago • 4 comments

I cant unpack boot.img file, it writes this error: ./gradlew: No such file or directory. I've checked if everything is installed: Reading package lists... Done Building dependency tree... Done Reading state information... Done device-tree-compiler is already the newest version (1.6.0-1). g++ is already the newest version (4:10.2.1-1). gcc is already the newest version (4:10.2.1-1). git is already the newest version (1:2.33.0-1). lz4 is already the newest version (1.9.3-2). openjdk-11-jdk is already the newest version (11.0.12+7-2). python3 is already the newest version (3.9.2-3). xz-utils is already the newest version (5.2.5-2). zlib1g-dev is already the newest version (1:1.2.11.dfsg-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

What's wrong?

GH228 avatar Oct 21 '21 18:10 GH228

Run it again with debugging enabled.

./gradlew unpack --scan

Please paste the full log and your testing "boot.img". Thanks

cfig avatar Oct 22 '21 02:10 cfig

./gradlew unpack --scan -bash: ./gradlew: No such file or directory Uploading boot.zip…

ghost avatar Oct 26 '21 19:10 ghost

It's weird. BTW, have you installed jdk?

cfig avatar Oct 27 '21 05:10 cfig

openjdk-11-jdk is already the newest version (11.0.12+7-2).

ghost avatar Oct 27 '21 16:10 ghost

Kindly navidate to the _$PATH{}_ where there exists a file gradlew. In this case, you should navigate the directory where you have cloned the repository. This should fix your problem.

Additionally you might face the error, ./gradlew: Permission denied To fix this you have to make the file executable, simply use, chmod +x gradlew.

Now you'll be able to use ./gradlew unpack

ci-r avatar Oct 22 '22 10:10 ci-r

Close it now, hope the problem is not there anymore ~

cfig avatar Apr 01 '23 16:04 cfig