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

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

我正在尝试将应用内购买(从黑莓市场)集成到我的 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 构建路径”、关闭 eclipse 等...

谢谢!

最佳答案

不,你不能这样做。

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

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

关于android - 我可以将 BlackBerry inApp 支付集成到我的 android 应用程序中吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12913620/

相关文章:

android - 重启手机后服务停止

java - Android:如何使用 Java 将 MP4A 音频转换为 MP3 或 Wav

ios - 应用内购买沙盒测试 - 您所在地区不支持购买

iphone - SKPayments 完成交易调用两次

css - 修复了 BlackBerry z10 JQM 中的背景图像

listview - 是否可以反转 GroupDataModel 中的分组

android - 获取 Traffic Jam Google Maps API

Android 应用内结算 v3 : Not receiving signatures

c++ - 单击 BB 10 C++ 按钮

android - 仅更改 ListView 中选定条目的背景颜色