Google计费库中的ANR

时间:2018-07-06 16:43:24

标签: android in-app-purchase google-play-services in-app-billing

任何人都不知道为什么可能会发生此ANR?我认为从旧的IABHelper升级到新的计费库可以解决该问题,但没有解决。我在github上的计费库示例中提交了一个错误,但是什么也没听到。

这是在Android 7和8上发生的。我从未发生过,我只在Play商店控制台上看到它。

"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 flags=1 obj=0x73ad8e30 self=0x7d456c7a00
  | sysTid=21462 nice=0 cgrp=default sched=0/0 handle=0x7d4a0fd9b0
  | state=S schedstat=( 0 0 0 ) utm=2078 stm=1145 core=2 HZ=100
  | stack=0x7ff79b5000-0x7ff79b7000 stackSize=8MB
  | held mutexes=
  #00  pc 000000000001de2c  /system/lib64/libc.so (syscall+28)
  #01  pc 00000000000e1a5c  /system/lib64/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+152)
  #02  pc 00000000004e12c4  /system/lib64/libart.so (_ZN3artL12GoToRunnableEPNS_6ThreadE+440)
  #03  pc 00000000004e10c4  /system/lib64/libart.so (_ZN3art12JniMethodEndEjPNS_6ThreadE+28)
  #04  pc 0000000000987c3c  /system/framework/arm64/boot-framework.oat (Java_android_os_BinderProxy_transactNative__ILandroid_os_Parcel_2Landroid_os_Parcel_2I+220)
  at android.os.BinderProxy.transactNative (Native method)
  at android.os.BinderProxy.transact (Binder.java:766)
  at com.android.vending.billing.IInAppBillingService$Stub$Proxy.isBillingSupported (IInAppBillingService.java:320)
  at com.android.billingclient.api.BillingClientImpl$BillingServiceConnection.onServiceConnected (BillingClientImpl.java:839)
  at android.app.LoadedApk$ServiceDispatcher.doConnected (LoadedApk.java:1713)
  at android.app.LoadedApk$ServiceDispatcher$RunConnection.run (LoadedApk.java:1742)
  at android.os.Handler.handleCallback (Handler.java:789)
  at android.os.Handler.dispatchMessage (Handler.java:98)
  at android.os.Looper.loop (Looper.java:164)
  at android.app.ActivityThread.main (ActivityThread.java:6703)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:769)

0 个答案:

没有答案