Estoy tratando de configurar un soporte básico con amazon iap integrado. Sin embargo, cuando estoy tratando de exportar mi apk, tengo los siguientes errores:¿Cómo configurar Proguard para amazon iap?
[2012-06-17 10:59:44 - sc] Proguard returned with error code 1. See console
[2012-06-17 10:59:44 - sc] Unexpected error while performing partial evaluation:
[2012-06-17 10:59:44 - sc] Class = [com/amazon/inapp/purchasing/KiwiResponseHandler$PurchaseResponseHandlerRunnable]
[2012-06-17 10:59:44 - sc] Method = [run()V]
[2012-06-17 10:59:44 - sc] 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-17 10:59:44 - sc] 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-17 10:59:44 - sc] at proguard.evaluation.value.ReferenceValue.generalize(ReferenceValue.java:344)
[2012-06-17 10:59:44 - sc] at proguard.evaluation.value.IdentifiedReferenceValue.generalize(IdentifiedReferenceValue.java:65)
[2012-06-17 10:59:44 - sc] at proguard.evaluation.value.ReferenceValue.generalize(ReferenceValue.java:481)
...
tengo el archivo de configuración por defecto Proguard, y ya he añadido el:
-dontwarn com.amazon.**
-keep class com.amazon.** {*;}
-keepattributes *Annotation*
líneas a la misma. ¿Alguna sugerencia de lo que salió mal?
¿Has echado un vistazo a esta página? http://www.amazonappstoredev.com/2012/04/code-obfuscation-for-the-amazon-in-app-purchasing-api.html – Austin
¿Alguna vez encontró una solución para esto? –
pregunta y respuesta similar: http://stackoverflow.com/questions/26061795/do-not-optimize-a-special-path-path-with-proguard?lq=1 – nather