TA的每日心情 | 难过 2016-8-5 16:48 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
Ubuntu下用apktool回编译失败,出现了以下错误:
I: Using Apktool 2.0.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_224185866944982275.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 22, --version-code, 1, --version-name, Developer Build, -F, /tmp/APKTOOL6017041239150380880.tmp, -0, arsc, -I, /home/super/apktool/framework/1.apk, -S, /home/super/getSource/342020/res, -M, /home/super/getSource/342020/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
at brut.androlib.Androlib.buildResources(Androlib.java:397)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_224185866944982275.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 22, --version-code, 1, --version-name, Developer Build, -F, /tmp/APKTOOL6017041239150380880.tmp, -0, arsc, -I, /home/super/apktool/framework/1.apk, -S, /home/super/getSource/342020/res, -M, /home/super/getSource/342020/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:445)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_224185866944982275.tmp, p, --forced-package-id, 127, --min-sdk-version, 16, --target-sdk-version, 22, --version-code, 1, --version-name, Developer Build, -F, /tmp/APKTOOL6017041239150380880.tmp, -0, arsc, -I, /home/super/apktool/framework/1.apk, -S, /home/super/getSource/342020/res, -M, /home/super/getSource/342020/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
Caused by: java.io.IOException: Cannot run program "/tmp/brut_util_Jar_224185866944982275.tmp": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 10 more
请问有谁知道原因吗? |
|