接收广播时出错Intent act=com.android.vending.billing.PURCHASES_UPDATE

swvgeqrz  于 2023-01-07  发布在  Android
关注(0)|答案(2)|浏览(194)

I'm getting an error in crashlytics logs
java.lang.RuntimeException: Error receiving broadcast Intent { act=com.android.vending.billing.PURCHASES_UPDATED flg=0x10 pkg=*** (has extras) } in com.android.billingclient.api.zzg@c300e4d android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1577) android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(Unknown Source:2) android.os.Handler.handleCallback(Handler.java:938) android.os.Handler.dispatchMessage(Handler.java:99) android.os.Looper.loop(Looper.java:368) android.app.ActivityThread.main(ActivityThread.java:7710) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
Using standard Google billing library subscriptions + in-app billing
https://developer.android.com/google/play/billing/integrate
I don't see in docs that I should register broadcast receiver, where PURCHASES_UPDATED come from?

62lalag4

62lalag41#

该问题是架构问题,计费客户端在onCreate中的某个基本Activity中初始化,并且是在几个活动中触发购买回调时的情况,其中一个处于非法状态。

wxclj1h5

wxclj1h52#

有趣的是,当我为预告片提取onresume时,我修复了结帐链接的位置。以前oncreateview使用我的账单代码

相关问题