Closed GoogleCodeExporter closed 9 years ago
Same issue with latest apktool release.
My System:
Ubuntu Lucid Lynx (x86_64)
apktool 1.4.2
apktool-install-linux-r04-brut1
Original comment by adrien.b...@gmail.com
on 3 Dec 2011 at 7:47
I was getting this error because of i'm tring to decompile/compile a custom
roms apk.
I can decompile/compile an original framework-res.apk without any problem.
Maybe you are trying a custom apk, so u get the same problem.
Original comment by 1black.f...@gmail.com
on 3 Dec 2011 at 9:32
Issue solve with SDK update (R11 -> R15)
Original comment by adrien.b...@gmail.com
on 16 Dec 2011 at 1:30
I am having same issue :'( and SDK update didn't solve issue sorry Adrien.b
Original comment by SteveLV...@gmail.com
on 11 Apr 2012 at 3:39
exact error I am getting :'(
Steve-Laptop:c66e88531184 stevelv702$ apktool b -f
I: Smaling...
I: Building resources...
/usr/local/bin/aapt: /usr/local/bin/aapt: cannot execute binary file
Exception in thread "main" brut.androlib.AndrolibException:
brut.common.BrutException: could not exec command: [aapt, p, -F,
/var/folders/rl/s5c53_bx0zn1yhnmn9sxgzg40000gn/T/APKTOOL7630072128416074195.tmp,
-I, /Users/stevelv702/apktool/framework/1.apk, -S,
/Users/stevelv702/Downloads/1184zip/c66e88531184/./res, -M,
/Users/stevelv702/Downloads/1184zip/c66e88531184/./AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F,
/var/folders/rl/s5c53_bx0zn1yhnmn9sxgzg40000gn/T/APKTOOL7630072128416074195.tmp,
-I, /Users/stevelv702/apktool/framework/1.apk, -S,
/Users/stevelv702/Downloads/1184zip/c66e88531184/./res, -M,
/Users/stevelv702/Downloads/1184zip/c66e88531184/./AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Steve-Laptop:c66e88531184 stevelv702$
Original comment by st...@stevelv702.com
on 11 Apr 2012 at 11:59
/usr/local/bin/aapt: /usr/local/bin/aapt: cannot execute binary file
aapt could not be found / executed. Not an Apktool bug.
Original comment by connor.tumbleson
on 17 Nov 2012 at 2:26
I had the same problem. Fixed with using the original aapt (by adding the
android platform-tools to the first place of my PATH) from the sdk.
Original comment by dieu...@gmail.com
on 13 Feb 2013 at 5:38
Original issue reported on code.google.com by
1black.f...@gmail.com
on 5 Nov 2011 at 11:43Attachments: