我可以将BlackBerry inApp支付集成到我的Android应用程序中吗?

时间:2012-10-16 11:23:11

标签: android in-app-purchase blackberry-10 blackberry-android

我试图将inapp购买(从黑莓市场)整合到我的Android应用程序中。 当我将这个库“ paymentapi.jar ”导入我的项目并运行它时,我收到这些警告/错误:

[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.blackberry.api.paymentsdk.a) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.blackberry.api.paymentsdk.digitalGoods.a) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.blackberry.api.paymentsdk.paymentInstruments.a) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.blackberry.api.paymentsdk.paymentInstruments.b) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.blackberry.api.paymentsdk.purchaseHistory.a) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.a.a.a.b) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.a.a.a.c) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.a.a.a.d) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.a.a.a.e) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.a.a.a.f) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.a.a.a.i) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class
(net.rimlib.a.a.a.k) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx 
EXCEPTION FROM SIMULATION:
[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type boolean. This is symptomatic of .class transformation tools that ignore local variable information.

[2012-10-12 15:28:43 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx ...at bytecode offset 00000013
locals[0000]: I
locals[0001]: Lnet/rim/device/api/system/CodeSigningKey;
stack[top0]: I
...while working on block 0012
...while working on method b:(I)Z
...while processing b (I)Z
...while processing net/rimlib/a/a/b/b.class

[2012-10-12 15:28:55 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Dx 1 error; aborting
[2012-10-12 15:28:55 - com.jcentricity.forecastica.lite.activity.LoginActivity_BlackBerry] Conversion to Dalvik format failed with error 1

我尝试过很多“清理项目”,“java build path”,关闭eclipse等...

谢谢!

2 个答案:

答案 0 :(得分:0)

不,你不能这样做。

BlackBerry Java-ME应用内结算系统使用特定于BlackBerry Java-ME平台的类。因此,您甚至无法编译您的应用程序,更不用说运行它了。由于Android平台不支持BlackBerry SDK,您将无法使用BlackBerry库进行应用内购买。

相反,您可以使用Android自己的in app purchase system来实现相同的功能。

答案 1 :(得分:-1)

但是它说Android支持inApp购买,那么怎么样?

http://developer.blackberry.com/android/apisupport/apisupport_inapp_payments_support.html