Proguard 返回错误代码 1
您好,我想应用混淆器来保护我的应用程序,但是在执行此操作时会生成以下错误,我不知道如何处理它,所以请帮助我,任何与之相关的建议将不胜感激。
[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)
Hello I want to apply proguard to secury my application but while doing this following errors are generated, I don't know how to handle it, so please help me, any suggestion related to it will be appreciated.
[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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的日志中似乎缺少一些行(例如版本号)。您的 ProGuard 配置也将有助于找出问题所在。
一般来说,该消息指出 ProGuard 中存在错误。您应该检查最新版本是否解决了该问题(撰写本文时为 ProGuard 4.6)。
There seem to be some lines missing from your log (like the version number). Your ProGuard configuration would also help figuring out what is going wrong.
Generally, the message points to a bug in ProGuard. You should check if the latest version solves the problem (ProGuard 4.6 at this time of writing).