ApkTool不让我做任何事情

时间:2016-09-02 21:14:46

标签: java android apk apktool

我有一个文件夹需要编译成我手机的APK,我已按照https://ibotpeaches.github.io/Apktool/install/

上的所有安装说明进行操作

当我输入java java -jar apktool.jar apktool b /Users/jordan/Desktop/PieMessage-master

我明白了:

I: Using Apktool 2.2.0
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.io.FileNotFoundException: b (No such file or directory)
at brut.androlib.Androlib.readMetaFile(Androlib.java:258)
at brut.androlib.Androlib.build(Androlib.java:270)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.DirectoryException: java.io.FileNotFoundException: b (No such file or directory)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.Androlib.readMetaFile(Androlib.java:254)
... 4 more
Caused by: java.io.FileNotFoundException: b (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:219)
at java.util.zip.ZipFile.<init>(ZipFile.java:149)
at java.util.zip.ZipFile.<init>(ZipFile.java:163)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more

2 个答案:

答案 0 :(得分:0)

这是一个古老的问题,但是有很多观点。遇到这个问题,我将分享解决方案。这应该起作用:

java -jar apktool.jar b /Users/jordan/Desktop/PieMessage-master

答案 1 :(得分:-1)

试试这个,看它是否有效:

java -jar apktool.jar apktool /Users/jordan/Desktop/PieMessage-master