0

我有一个文件夹需要编译成手机的 APK,我已按照https://ibotpeaches.github.io/Apktool/install/上的所有安装说明进行操作

当我输入 javajava -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
4

2 回答 2

0

这是一个古老的问题,但它有很多观点。我会分享我的解决方案,因为我遇到了这个问题。这应该有效:

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

于 2018-09-18T15:10:03.690 回答
-1

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

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

于 2016-09-02T21:30:38.310 回答