Closed GoogleCodeExporter closed 9 years ago
I have the same problem on Ubuntu 10.04 LTS. I have made some changes to
AndroidManifest.xml.
Exception in thread "main" brut.androlib.AndrolibException:
brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL3329107106533909369.tmp, -I, /root/apktool/framework/1.apk, -S,
/home/shimon/Downloads/decoded_music/res, -M,
/home/shimon/Downloads/decoded_music/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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL3329107106533909369.tmp, -I, /root/apktool/framework/1.apk, -S,
/home/shimon/Downloads/decoded_music/res, -M,
/home/shimon/Downloads/decoded_music/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Original comment by shimon...@gmail.com
on 6 Sep 2011 at 10:45
Hmm.. that's really weird. If apktool can't run that command, you shouldn't be
able to do that too :-/
Do you still get this error? Do you get it for particular apk file or for any
of them?
Original comment by Brut.alll
on 5 Nov 2011 at 10:25
[deleted comment]
I'm having this issue as well. Running on Ubuntu 11.10 64-bit
Exception in thread "main" brut.androlib.AndrolibException:
brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL2547376524106737809.tmp, -I, /home/yhong/apktool/framework/1.apk,
-S, /home/yhong/apktool/SystemUI/res, -M,
/home/yhong/apktool/SystemUI/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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL2547376524106737809.tmp, -I, /home/yhong/apktool/framework/1.apk,
-S, /home/yhong/apktool/SystemUI/res, -M,
/home/yhong/apktool/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException:
error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:483)
at brut.util.OS.exec(OS.java:78)
... 7 more
Original comment by yanc...@gmail.com
on 30 Nov 2011 at 12:21
I find that I can just move the effected files elsewhere and it will build fine
:)
Original comment by fjfinnjo...@gmail.com
on 4 Dec 2011 at 6:23
also got this issue... don't know any solution. can anybody help to solve the
problem?? thanks
Original comment by mrill...@gmail.com
on 16 Dec 2011 at 8:20
aapt, p, -F, /tmp/APKTOOL2547376524106737809.tmp, -I,
/home/yhong/apktool/framework/1.apk, -S, /home/yhong/apktool/SystemUI/res, -M,
/home/yhong/apktool/SystemUI/AndroidManifest.xml 要把里面的,
这个去掉才能过。不过不知道怎么修改那个jar
Original comment by xhd3...@gmail.com
on 21 Dec 2011 at 3:18
@brut.all
Message from MIUI Devs on this framework plurals error...
"The tool cannot handle the string like "<item …> %d of %d </item>", which
contains two "%d". A workaround could be removing the second "%d", but it can
result in a runtime error. :("
Original comment by markhedl...@gmail.com
on 30 Dec 2011 at 9:30
I have this error also
under Ubuntu 11.10;
apktool v1.4.3
Exception in thread "main" brut.androlib.AndrolibException:
brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL5150729603762710226.tmp, -I, /home/kdebarb/apktool/framework/1.apk,
-S, /home/Flash_SGSI/ICS_Build/MyPackage/Build/Settings/res, -M,
/home/Flash_SGSI/ICS_Build/MyPackage/Build/Settings/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,
/tmp/APKTOOL5150729603762710226.tmp, -I, /home/kdebarb/apktool/framework/1.apk,
-S, /home/Flash_SGSI/ICS_Build/MyPackage/Build/Settings/res, -M,
/home/Flash_SGSI/ICS_Build/MyPackage/Build/Settings/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
aapt command work!
aapt p -F /tmp/APKTOOL2538872800590172437.tmp, -I
/home/kdebarb/apktool/framework/1.apk -S
/home/Flash_SGSI/ICS_Build/MyPackage/Build/SystemUI/res -M
/home/Flash_SGSI/ICS_Build/MyPackage/Build/SystemUI/AndroidManifest.xml
-> no error.
Original comment by kdebar...@gmail.com
on 4 Jan 2012 at 7:45
I found the reason for this issure.
cause you didn't set your apktool's path to your env's path
eg.excute command below:
export PATH=$PATH:/Users/game/tools; ./apktool b src_path output.apk
/Users/game/tools is apktool's path
Original comment by james.zh...@gmail.com
on 17 Jan 2012 at 7:58
[deleted comment]
Original comment by connor.tumbleson
on 17 Nov 2012 at 8:19
[deleted comment]
I my case it was caused by the aapt given by the apktool website (it seems to
be outdated). Actually I just had to use in my path the aapt tool provided by
the android sdk and know it works.
Original comment by quentinj...@gmail.com
on 19 Dec 2012 at 8:01
Many thanks @quentinj , you're right it works now :) after downloading
"http://dl.google.com/android/adt/adt-bundle-linux-x86_64.zip" and using the
aapt under "..../adt-bundle-linux-x86_64/sdk/platform-tools/"
Original comment by f.se...@gmail.com
on 21 Dec 2012 at 6:23
I am trying to install apktool 1.5.2 on my MAC but it says can not find
apktool.jar
Original comment by jlev...@gmail.com
on 12 Apr 2013 at 2:35
Yeah, @quentinj's way works, I have set aapt's(under android sdk) path as the
env variables
Original comment by Pengling...@gmail.com
on 18 May 2014 at 7:21
Can you send a useful aapt to me?
mail: vistahack23@gmail.com
Sorry for my English :D
Original comment by vistahac...@gmail.com
on 28 May 2014 at 2:46
Original issue reported on code.google.com by
a.id...@gmail.com
on 1 Sep 2011 at 4:01