[BUG] apktool b fails
Author: qdiiCreated Sep 15, 2024Updated Jul 15, 2025
LabelsWaiting for issuer
Information
Apktool Version (
apktool -version) -❯ apktool --version 2.9.3Operating System (Mac, Linux, Windows) - Arch Linux
APK From? (Playstore, ROM, Other) - https://storage.googleapis.com/hextree_prod_image_uploads/media/uploads/reverse-android-apps/io.hextree.reversingexample.apk
Java Version (
java --version) -❯ java --version openjdk 22.0.2 2024-07-16 OpenJDK Runtime Environment (build 22.0.2+9) OpenJDK 64-Bit Server VM (build 22.0.2+9, mixed mode, sharing)
Stacktrace/Logcat
❯ apktool b
I: Using Apktool 2.9.3
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec: [/tmp/brut_util_Jar_22815232142775964911878089668197865138.tmp, compile, --dir, /home/qdii/dl/io.hextree.reversingexample/./res, --legacy, -o, /home/qdii/dl/io.hextree.reversingexample/./build/resources.zip]
Steps to Reproduce
wget https://storage.googleapis.com/hextree_prod_image_uploads/media/uploads/reverse-android-apps/io.hextree.reversingexample.apkapktool d io.hextree.reversingexample.apkcd io.hextree.reversingexample.apkapktool b
Frameworks
Not from a framework.
APK
Added above
Questions to ask before submission
Have you tried
apktool d,apktool bwithout changing anything? YesIf you are trying to install a modified apk, did you resign it? I'm not trying that
Are you using the latest apktool version? Yes
Source: iBotPeaches/Apktool