Proguard 返回错误代码 1

发布于 2024-11-26 15:40:58 字数 2795 浏览 1 评论 0原文

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

[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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇纵 2024-12-03 15:40:58

您的日志中似乎缺少一些行(例如版本号)。您的 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文