Android应用内购买流程破裂

Android应用内购买流程破裂,第1张

概述我正在尝试在应用程序中进行应用内购买流程.我从 http://developer.android.com/training/in-app-billing/preparing-iab-app.html使用辅助类(IabHelper等).一切都很好,直到我付款.返回活动时,会引发此异常 java.lang.RuntimeException: Failure delivering result Resu 我正在尝试在应用程序中进行应用内购买流程.我从 http://developer.android.com/training/in-app-billing/preparing-iab-app.html使用辅助类(IabHelper等).一切都很好,直到我付款.返回活动时,会引发此异常
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null,request=10001,result=-1,data=Intent { (has extras) }} to activity{com.sunlight.mangomonitor/com.sunlight.mangomonitor.PurchaseActivity}:java.lang.IllegalArgumentException: java.security.spec.InvalIDKeySpecException:java.lang.RuntimeException: error:0D07209B:asn1 enCoding routines:ASN1_get_object:too longat androID.app.ActivityThread.deliverResults(ActivityThread.java:3408)at androID.app.ActivityThread.handleSendResult(ActivityThread.java:3451)at androID.app.ActivityThread.access00(ActivityThread.java:154)at androID.app.ActivityThread$H.handleMessage(ActivityThread.java:1332)at androID.os.Handler.dispatchMessage(Handler.java:99)at androID.os.Looper.loop(Looper.java:137)at androID.app.ActivityThread.main(ActivityThread.java:5296)at java.lang.reflect.Method.invokeNative(Native Method)at java.lang.reflect.Method.invoke(Method.java:511)at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:869)at dalvik.system.NativeStart.main(Native Method)Caused by: java.lang.IllegalArgumentException: java.security.spec.InvalIDKeySpecException:java.lang.RuntimeException: error:0D07209B:asn1 enCoding routines:ASN1_get_object:too longat com.sunlight.mangomonitor.util.Security.generatePublicKey(Security.java:92)at com.sunlight.mangomonitor.util.Security.verifyPurchase(Security.java:66)at com.sunlight.mangomonitor.util.IabHelper.handleActivityResult(IabHelper.java:460)at com.sunlight.mangomonitor.PurchaseActivity.onActivityResult(PurchaseActivity.java:145)at androID.app.Activity.dispatchActivityResult(Activity.java:5444)at androID.app.ActivityThread.deliverResults(ActivityThread.java:3404)... 11 moreCaused by: java.security.spec.InvalIDKeySpecException: java.lang.RuntimeException:error:0D07209B:asn1 enCoding routines:ASN1_get_object:too longatorg.apache.harmony.xnet.provIDer.Jsse.OpenSSlrsAKeyFactory.engineGeneratePublic(OpenSSlrsAKeyF    actory.java:52)at java.security.KeyFactory.generatePublic(KeyFactory.java:171)at com.sunlight.mangomonitor.util.Security.generatePublicKey(Security.java:87)... 16 moreCaused by: java.lang.RuntimeException: error:0D07209B:asn1 enCodingroutines:ASN1_get_object:too longat org.apache.harmony.xnet.provIDer.Jsse.NativeCrypto.d2i_PUBKEY(Native Method)at org.apache.harmony.xnet.provIDer.Jsse.OpenSSlrsAKeyFactory.engineGeneratePublic(OpenSSlrsAKeyfactory.java:48)

我发现开始购买的活动可能会被销毁,我该怎么办?
有什么建议么?

解决方法 通过调用activity来调用该采购活动的结果概念.检查onActivityResult()函数的结果是否使用RESulT_OK和RESulT_CANCELLED,以便您发现. 总结

以上是内存溢出为你收集整理的Android应用内购买流程破裂全部内容,希望文章能够帮你解决Android应用内购买流程破裂所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1133925.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存