[Info] 正在制作apk安装包...
[Info] I: Using Apktool 2.6.1 on UNICDC749F_cm.apk
[Info] I: Loading resource table...
[Info] I: Decoding AndroidManifest.xml with resources...
[Info] I: Loading resource table from file: C:\Users\yanguopin\AppData\Local\HBuilder X\AndroidPackWork\apktool\1.apk
[Info] I: Regular manifest package...
[Info] I: Decoding file-resources...
[Info] I: Decoding values / XMLs...
[Info] I: Copying raw classes.dex file...
[Error] Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: Error copying file: classes.dex
[Error] at brut.androlib.Androlib.decodeSourcesRaw(Androlib.java:83)
[Error] at brut.androlib.ApkDecoder.decode(ApkDecoder.java:131)
[Error] at brut.apktool.Main.cmdDecode(Main.java:175)
[Error] at brut.apktool.Main.main(Main.java:79)
[Error] Caused by: brut.directory.DirectoryException: Error copying file: classes.dex
[Error] at brut.directory.DirUtil.copyToDir(DirUtil.java:99)
[Error] at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:208)
[Error] at brut.androlib.Androlib.decodeSourcesRaw(Androlib.java:81)
[Error] ... 3 more
[Error] Caused by: java.io.IOException: ���̿ռ䲻�㡣
[Error] at java.base/java.io.FileOutputStream.writeBytes(Native Method)
[Error] at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)
[Error] at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1310)
[Error] at org.apache.commons.io.IOUtils.copy(IOUtils.java:978)
[Error] at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1282)
[Error] at org.apache.commons.io.IOUtils.copy(IOUtils.java:953)
[Error] at brut.util.BrutIO.copyAndClose(BrutIO.java:35)
[Error] at brut.directory.DirUtil.copyToDir(DirUtil.java:94)
[Error] ... 5 more
[Error] Apk tool decompile package failed
[Error] 制作结果:Failed. Reason:
2 个回复
1***@qq.com (作者)
重启电脑后可以了。。
DCloud_云服务_Mal
这个是安心打包在本地生成安装包的时候失败了,你看一下你的项目路径中是否包含中文或特殊字符?