[2016-12-26 23:45:51 - test] Proguard returned with error code 1. See console
[2016-12-26 23:45:51 - test] java.io.IOException: Can't read [D:\xxx\test\code\android\libs\libammsdk.jar] (Can't process class [com/tencent/wxop/stat/al.class] (Unknown verification type [95] in stack map frame))
[2016-12-26 23:45:51 - test] at proguard.InputReader.readInput(InputReader.java:230)
[2016-12-26 23:45:51 - test] at proguard.InputReader.readInput(InputReader.java:200)
[2016-12-26 23:45:51 - test] at proguard.InputReader.readInput(InputReader.java:178)
[2016-12-26 23:45:51 - test] at proguard.InputReader.execute(InputReader.java:78)
[2016-12-26 23:45:51 - test] at proguard.ProGuard.readInput(ProGuard.java:196)
[2016-12-26 23:45:51 - test] at proguard.ProGuard.execute(ProGuard.java:78)
[2016-12-26 23:45:51 - test] at proguard.ProGuard.main(ProGuard.java:492)
[2016-12-26 23:45:51 - test] Caused by: java.io.IOException: Can't process class [com/tencent/wxop/stat/al.class] (Unknown verification type [95] in stack map frame)
[2016-12-26 23:45:51 - test] at proguard.io.ClassReader.read(ClassReader.java:112)
[2016-12-26 23:45:51 - test] at proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
[2016-12-26 23:45:51 - test] at proguard.io.JarReader.read(JarReader.java:65)
[2016-12-26 23:45:51 - test] at proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65)
[2016-12-26 23:45:51 - test] at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53)
[2016-12-26 23:45:51 - test] at proguard.InputReader.readInput(InputReader.java:226)
[2016-12-26 23:45:51 - test] ... 6 more
[2016-12-26 23:45:51 - test] Caused by: java.lang.RuntimeException: Unknown verification type [95] in stack map frame
[2016-12-26 23:45:51 - test] at proguard.classfile.io.ProgramClassReader.createVerificationType(ProgramClassReader.java:890)
[2016-12-26 23:45:51 - test] at proguard.classfile.io.ProgramClassReader.visitFullFrame(ProgramClassReader.java:659)
[2016-12-26 23:45:51 - test] at proguard.classfile.attribute.preverification.FullFrame.accept(FullFrame.java:114)
[2016-12-26 23:45:51 - test] at proguard.classfile.io.ProgramClassReader.visitStackMapTableAttribute(ProgramClassReader.java:452)
[2016-12-26 23:45:51 - test] at proguard.classfile.attribute.preverification.StackMapTableAttribute.accept(StackMapTableAttribute.java:71)
[2016-12-26 23:45:51 - test] at proguard.classfile.io.ProgramClassReader.visitCodeAttribute(ProgramClassReader.java:422)
[2016-12-26 23:45:51 - test] at proguard.classfile.attribute.CodeAttribute.accept(CodeAttribute.java:101)
[2016-12-26 23:45:51 - test] at proguard.classfile.io.ProgramClassReader.visitProgramMethod(ProgramClassReader.java:200)
[2016-12-26 23:45:51 - test] at proguard.classfile.io.ProgramClassReader.visitProgramClass(ProgramClassReader.java:142)
[2016-12-26 23:45:51 - test] at proguard.classfile.ProgramClass.accept(ProgramClass.java:346)
[2016-12-26 23:45:51 - test] at proguard.io.ClassReader.read(ClassReader.java:91)
[2016-12-26 23:45:51 - test] ... 11 more
事实上我能确定项目绝对没问题:因为这个项目是很久以前的,当时发版本有代码混淆,而且没任何问题,之后项目完全没有任何改动。而我最近电脑重装系统,Eclipse开发环境和sdk目录是重新弄的,所以肯定是开发环境的问题。
网上查了资料后,能判断是proguard版本的问题,于是我下载了proguard5.3,用5.3中的lib文件夹中的proguard.jar等三个jar文件替换掉