cafebazaar / Poolakey

Android In-App Billing SDK for Cafe Bazaar App Store
Apache License 2.0
71 stars 22 forks source link

android.os.DeadObjectException in ServiceBillingConnection.kt:121 #79

Closed BasetEsmaeili closed 1 year ago

BasetEsmaeili commented 1 year ago

Hello πŸ‘‹πŸ». Describe the bug Since we use both bazaar and myket billing we can't use poolakey dependency becuase project build failed with 2 IInAppBillingService.aidl files and android studio says they have conflict with each other.
So we imported Poolakey and myket-billing as a android module with single IInAppBillingService.aidl in our android project and every things fine and works. But we have a crash log in our crash report service with this stacktrace:

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:630) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1011) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:620) ... 1 more Caused by: android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(BinderProxy.java:540) at com.android.vending.billing.IInAppBillingService$Stub$Proxy.isBillingSupported(IInAppBillingService$Stub.java:326) at ir.cafebazaar.poolakey.billing.connection.ServiceBillingConnection.isPurchaseTypeSupported(ServiceBillingConnection.kt:121) at ir.cafebazaar.poolakey.billing.connection.ServiceBillingConnection.onServiceConnected(ServiceBillingConnection.kt:98) at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1980) at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:2012) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:7912) ... 3 more

To Reproduce We can't reproduce it.

Screenshots

image Screenshot 1401-10-20 at 13 12 24

This report is just for one week.

Versions