Android的,proguard的和PayPal [英] Android, proguard and paypal

查看:138
本文介绍了Android的,proguard的和PayPal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用ProGuard贝宝类都没有找到

Using proguard the paypal classes are not found

ERROR/AndroidRuntime(3200): Caused by: java.lang.NoClassDefFoundError: com.paypal.android.MEP.PayPal

我试图添加-libraryjars PATH_PAYPAL_LIB_JAR但它似乎没有什么改变,同样的错误。
我试图添加-keepclass com.paypal。*同样的结果。

I tried to add -libraryjars PATH_PAYPAL_LIB_JAR but it seems to change nothing, same error. I tried to add -keepclass com.paypal.* same result

您可以提供一些帮助?

推荐答案

您应该确保PayPal的罐子是在库项目的目录。那么ProGuard的将处理它,它在输出中包括罐子。

You should make sure the paypal jar is in the libs directory of your project. ProGuard will then process it and include it in the output jar.

随着-libraryjars选项,ProGuard的会读它,但不包括它在输出瓶子,所以你得到的NoClassDefFoundError。请参阅 ProGuard的手动

With the -libraryjars option, ProGuard will read it, but not include it in the output jar, so you get a NoClassDefFoundError. See the ProGuard manual.

这篇关于Android的,proguard的和PayPal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆