Proguard返回错误代码1

时间:2011-07-28 09:21:15

标签: proguard

您好我想将proguard应用于secury我的应用程序但是在执行此操作时会产生以下错误,我不知道如何处理它,所以请帮助我,任何与之相关的建议都将不胜感激。

[2011-07-28 14:42:17 - Registration] Proguard returned with error code 1. See console
[2011-07-28 14:42:17 - Registration]       You should check if you need to specify additional program jars.
[2011-07-28 14:42:17 - Registration] java.lang.IllegalArgumentException: Invalid instruction offset [95] in code fragment at level 0
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.editor.CodeAttributeComposer.remapInstructionOffset(CodeAttributeComposer.java:669)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.editor.CodeAttributeComposer.visitExceptionInfo(CodeAttributeComposer.java:486)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.editor.CodeAttributeComposer.appendException(CodeAttributeComposer.java:229)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.editor.ExceptionInfoAdder.visitExceptionInfo(ExceptionInfoAdder.java:65)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.attribute.CodeAttribute.exceptionsAccept(CodeAttribute.java:153)
[2011-07-28 14:42:17 - Registration]    at proguard.optimize.peephole.MethodInliner.copyCode(MethodInliner.java:309)
[2011-07-28 14:42:17 - Registration]    at proguard.optimize.peephole.MethodInliner.visitCodeAttribute(MethodInliner.java:159)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.attribute.CodeAttribute.accept(CodeAttribute.java:101)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.ProgramMethod.attributesAccept(ProgramMethod.java:79)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.attribute.visitor.AllAttributeVisitor.visitProgramMember(AllAttributeVisitor.java:95)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.util.SimplifiedVisitor.visitProgramMethod(SimplifiedVisitor.java:91)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.ProgramMethod.accept(ProgramMethod.java:71)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.ProgramClass.methodsAccept(ProgramClass.java:439)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.visitor.AllMethodVisitor.visitProgramClass(AllMethodVisitor.java:47)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.ProgramClass.accept(ProgramClass.java:281)
[2011-07-28 14:42:17 - Registration]    at proguard.classfile.ClassPool.classesAccept(ClassPool.java:114)
[2011-07-28 14:42:17 - Registration]    at proguard.optimize.Optimizer.execute(Optimizer.java:560)
[2011-07-28 14:42:17 - Registration]    at proguard.ProGuard.optimize(ProGuard.java:325)
[2011-07-28 14:42:17 - Registration]    at proguard.ProGuard.execute(ProGuard.java:114)
[2011-07-28 14:42:17 - Registration]    at proguard.ProGuard.main(ProGuard.java:499)

1 个答案:

答案 0 :(得分:1)

您的日志中似乎缺少一些行(例如版本号)。您的ProGuard配置也有助于找出问题所在。

通常,该消息指向ProGuard中的错误。您应该检查最新版本是否解决了问题(撰写本文时的ProGuard 4.6)。