Skip to content

apktool can not execute #745

@Qjess38

Description

@Qjess38

Please help i have many time to solve this problem:
[-] I: Using Apktool 2.11.1 on output.apk with 6 threads
I: Checking whether sources have changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources have changed...
I: Building resources with aapt2...
W: /tmp/brut_util_Jar_134727757863499008377105961913850456581.tmp: 1: ELF: not found
W: /tmp/brut_util_Jar_134727757863499008377105961913850456581.tmp: 2: Syntax error: "(" unexpected
Exception in thread "main" brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 2): [/tmp/brut_util_Jar_134727757863499008377105961913850456581.tmp, compile, --dir, /tmp/d20250420-140847-uam2rl/original/res, --legacy, -o, /tmp/d20250420-140847-uam2rl/original/build/resources.zip]
at brut.androlib.AaptInvoker.invoke(SourceFile:106)
at brut.androlib.ApkBuilder.buildResources(SourceFile:352)
at brut.androlib.ApkBuilder.build(SourceFile:93)
at brut.apktool.Main.main(SourceFile:322)
Caused by: brut.common.BrutException: could not exec (exit code = 2): [/tmp/brut_util_Jar_134727757863499008377105961913850456581.tmp, compile, --dir, /tmp/d20250420-140847-uam2rl/original/res, --legacy, -o, /tmp/d20250420-140847-uam2rl/original/build/resources.zip]
at brut.util.OS.exec(SourceFile:143)
at brut.androlib.AaptInvoker.invoke(SourceFile:102)
... 3 more
Error: apktool execution failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions