[BUG]Encoding using AAPT/AAPT2 Failed! / Compile Failed !
TechnoIndian opened this issue · comments
Techno India commented
Information
- Apktool Version (
2.9.3
) - - Operating System (Termux,Android) -
- APK From? (Jar from github) -
- Java Version (
17-internal
) -
encoding-aapt.failed.log
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 resources has changed...
I: Building resources...
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_166296468087419377422651239972314854954.tmp[235]: syntax error: unexpected '('
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_166296468087419377422651239972314854954.tmp, compile, --dir, /data/data/com.termux/files/usr/tmp/apk-mitm-7da17574913f61fee42c6514e4ebba90/decode/res, --legacy, -o, /data/data/com.termux/files/usr/tmp/apk-mitm-7da17574913f61fee42c6514e4ebba90/decode/build/resources.zip]```
### encoding-aapt2.failed.log
```logs
I: Using Apktool 2.9.3
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether resources has changed...
I: Building resources...
brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/data/data/com.termux/files/usr/tmp/brut_util_Jar_14362068881115375334613972798598968693.tmp, compile, --dir, /data/data/com.termux/files/usr/tmp/apk-mitm-7da17574913f61fee42c6514e4ebba90/decode/res, --legacy, -o, /data/data/com.termux/files/usr/tmp/apk-mitm-7da17574913f61fee42c6514e4ebba90/decode/build/resources.zip]
W: /data/data/com.termux/files/usr/tmp/brut_util_Jar_14362068881115375334613972798598968693.tmp[235]: syntax error: unexpected '('
Steps to Reproduce
apktool 2.9.3
Frameworks
No FrameWorks
(orignal.apk
)
APK
Questions to ask before submission
-
Whenever the app is compiled after patching it, it always shows an error meaning that compile failed. can you fix it by updating it
-
if i use it with 'ApkTool M' then it works but in Termux it always fails why is that
Connor Tumbleson commented
why did you re-post this? My answer isn't going to change. Its not supported.