#3691·Apktool

[BUG] apktool b fails

Author: qdiiCreated Sep 15, 2024Updated Jul 15, 2025
LabelsWaiting for issuer

Information

  1. Apktool Version (apktool -version) -

    ❯ apktool --version
    2.9.3
    
  2. Operating System (Mac, Linux, Windows) - Arch Linux

  3. APK From? (Playstore, ROM, Other) - https://storage.googleapis.com/hextree_prod_image_uploads/media/uploads/reverse-android-apps/io.hextree.reversingexample.apk

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

  1. wget https://storage.googleapis.com/hextree_prod_image_uploads/media/uploads/reverse-android-apps/io.hextree.reversingexample.apk
  2. apktool d io.hextree.reversingexample.apk
  3. cd io.hextree.reversingexample.apk
  4. apktool b

Frameworks

Not from a framework.

APK

Added above

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? Yes

  2. If you are trying to install a modified apk, did you resign it? I'm not trying that

  3. Are you using the latest apktool version? Yes