我是靠谱客的博主 迷路月亮,最近开发中收集的这篇文章主要介绍Proguard For Amazon IAP,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

[2012-06-19 20:39:19 - Myapp] Proguard returned with error code 1. See console

[2012-06-19 20:39:19 - Myapp] Note: there were 523 duplicate class definitions.

[2012-06-19 20:39:19 - Myapp] Unexpected error while performing partial evaluation:

[2012-06-19 20:39:19 - Myapp]   Class       = [com/amazon/inapp/purchasing/KiwiResponseHandler$PurchaseResponseHandlerRunnable]

[2012-06-19 20:39:19 - Myapp]   Method      = [run()V]

[2012-06-19 20:39:19 - Myapp]   Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [java/lang/String] (with 4 known super classes) and [com/amazon/inapp/purchasing/KiwiPurchaseResponseCommandTask] (with 1 known super classes))

[2012-06-19 20:39:19 - Myapp] java.lang.IllegalArgumentException: Can't find common super class of [java/lang/String] (with 4 known super classes) and [com/amazon/inapp/purchasing/KiwiPurchaseResponseCommandTask] (with 1 known super classes)

[2012-06-19 20:39:19 - Myapp] at proguard.evaluation.value.ReferenceValue.generalize(ReferenceValue.java:344)

[2012-06-19 20:39:19 - Myapp] at proguard.evaluation.value.IdentifiedReferenceValue.generalize(IdentifiedReferenceValue.java:65)

[2012-06-19 20:39:19 - Myapp] at proguard.evaluation.value.ReferenceValue.generalize(ReferenceValue.java:481)

[2012-06-19 20:39:19 - Myapp] at proguard.evaluation.Variables.generalize(Variables.java:136)

[2012-06-19 20:39:19 - Myapp] at proguard.evaluation.TracedVariables.generalize(TracedVariables.java:118)

[2012-06-19 20:39:19 - Myapp] at proguard.optimize.evaluation.PartialEvaluator.evaluateSingleInstructionBlock(PartialEvaluator.java:682)

[2012-06-19 20:39:19 - Myapp] at proguard.optimize.evaluation.PartialEvaluator.evaluateInstructionBlock(PartialEvaluator.java:602)

[2012-06-19 20:39:19 - Myapp] at proguard.optimize.evaluation.PartialEvaluator.evaluateInstructionBlockAndExceptionHandlers(PartialEvaluator.java:560)

[2012-06-19 20:39:19 - Myapp] at proguard.optimize.evaluation.PartialEvaluator.visitCodeAttribute0(PartialEvaluator.java:264)

[2012-06-19 20:39:19 - Myapp] at proguard.optimize.evaluation.PartialEvaluator.visitCodeAttribute(PartialEvaluator.java:181)

[2012-06-19 20:39:19 - Myapp] at proguard.classfile.attribute.CodeAttribute.accept(CodeAttribute.java:101)

[2012-06-19 20:39:19 - Myapp] at proguard.classfile.ProgramMethod.attributesAccept(ProgramMethod.java:79)

[2012-06-19 20:39:19 - Myapp] at proguard.classfile.attribute.visitor.AllAttributeVisitor.visitProgramMember(AllAttributeVisitor.java:95)

[2012-06-19 20:39:19 - Myapp] at proguard.classfile.util.SimplifiedVisitor.visitProgramMethod(SimplifiedVisitor.java:91)

[2012-06-19 20:39:19 - Myapp] at proguard.classfile.ProgramMethod.accept(ProgramMethod.java:71)

[2012-06-19 20:39:19 - Myapp] at proguard.classfile.ProgramClass.methodsAccept(ProgramClass.java:504)

[2012-06-19 20:39:19 - Myapp] at proguard.classfile.visitor.AllMethodVisitor.visitProgramClass(AllMethodVisitor.java:47)

[2012-06-19 20:39:19 - Myapp] at proguard.classfile.ProgramClass.accept(ProgramClass.java:346)

[2012-06-19 20:39:19 - Myapp] at proguard.classfile.ClassPool.classesAccept(ClassPool.java:125)

[2012-06-19 20:39:19 - Myapp] at proguard.optimize.Optimizer.execute(Optimizer.java:372)

[2012-06-19 20:39:19 - Myapp] at proguard.ProGuard.optimize(ProGuard.java:307)

[2012-06-19 20:39:19 - Myapp] at proguard.ProGuard.execute(ProGuard.java:116)

[2012-06-19 20:39:19 - Myapp] at proguard.ProGuard.main(ProGuard.java:493)


此人遇到了跟我一样的问题

http://stackoverflow.com/questions/11070143/how-to-set-up-proguard-for-amazon-iap


解决方法:

In addition, you will also need to lower the number of optimization passes to 1, or skip proguard's optimization step.

1
-optimizationpasses 1

or

1
-dontoptimize


参考资料:

http://www.amazonappstoredev.com/2012/04/code-obfuscation-for-the-amazon-in-app-purchasing-api.html

最后

以上就是迷路月亮为你收集整理的Proguard For Amazon IAP的全部内容,希望文章能够帮你解决Proguard For Amazon IAP所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(46)

评论列表共有 0 条评论

立即
投稿
返回
顶部