Question

Integration issue

  • 10 October 2023
  • 3 replies
  • 51 views

Badge

We are integrating revenuecat inside our project as "observer", we have followed the documentation step by step.
Our part related to configure our project into revenuecat console is done for both android and ios.
but in order to test that out, we got a build for both android and ios, for android it is crashing when making a purchase. but for ios it is crashing without launching the app.
for androin we got "no class found exception" but also we add a proguard text file as you mentioned in the documentation 


3 replies

Userlevel 4
Badge +6

Hey @Muhammed_88 ,

 

Which framework and version of the SDK are you experiencing this on? Would you be able to send a track trace log of the crash or possibly debug logs of the issue?

Badge

we are using unity3d engine, and Revenucat sdk version is “”, and the debug logs are with android version:
 

 

2023.10.13 13:16:01.454 27673 27817 Debug [Purchases] - DEBUG :information_source: Debug logging enabled
2023.10.13 13:16:01.454 27673 27817 Debug [Purchases] - DEBUG :information_source: SDK Version - 7.0.0
2023.10.13 13:16:01.454 27673 27817 Debug [Purchases] - DEBUG :information_source: Package name - com.ritimus.ritimus
2023.10.13 13:16:01.454 27673 27817 Debug [Purchases] - DEBUG :bust_in_silhouette: Initial App User ID - null
2023.10.13 13:16:01.455 27673 27817 Debug [Purchases] - DEBUG :information_source: Purchases configured with response verification: DISABLED
2023.10.13 13:16:01.455 27673 27817 Debug [Purchases] - DEBUG :bust_in_silhouette: Identifying App User ID: $RCAnonymousID:bf5f7e2fccd447079b91b6bef48bb473
2023.10.13 13:16:01.456 27673 27817 Debug [Purchases] - DEBUG :information_source: Deleting old synced subscriber attributes that don't belong to $RCAnonymousID:bf5f7e2fccd447079b91b6bef48bb473
2023.10.13 13:16:01.458 27673 27817 Debug [Purchases] - DEBUG :information_source: Listener set
2023.10.13 13:16:01.459 27673 27673 Debug [Purchases] - DEBUG :information_source: Starting connection for com.android.billingclient.api.BillingClientImpl@8547d77
2023.10.13 13:16:01.475 27673 27673 Debug [Purchases] - DEBUG :information_source: App foregrounded
2023.10.13 13:16:01.475 27673 27673 Debug [Purchases] - DEBUG :information_source: CustomerInfo cache is stale, updating from network in foreground.
2023.10.13 13:16:01.476 27673 27673 Debug [Purchases] - DEBUG Retrieving customer info with policy: FETCH_CURRENT
2023.10.13 13:16:01.477 27673 27673 Debug [Purchases] - DEBUG :information_source: Updating pending purchase queue
2023.10.13 13:16:01.481 27673 27673 Debug [Purchases] - DEBUG :information_source: Offerings cache is stale, updating from network in foreground
2023.10.13 13:16:01.481 27673 27673 Debug [Purchases] - DEBUG :heart_eyes_cat: Start Offerings update from network.
2023.10.13 13:16:01.482 27673 27673 Warn [Purchases] - WARN Request already scheduled with jitter delay, adding existing callbacks to unjittered request with key: BackgroundAwareCallbackCacheKey(cacheKey=[/subscribers/%24RCAnonymousID%3Abf5f7e2fccd447079b91b6bef48bb473/offerings], appInBackground=false)
2023.10.13 13:16:01.482 27673 27673 Debug [Purchases] - DEBUG :information_source: Updating pending purchase queue
2023.10.13 13:16:01.483 27673 27673 Debug [Purchases] - DEBUG :information_source: No subscriber attributes to synchronize.
2023.10.13 13:16:01.485 27673 27673 Debug [Purchases] - DEBUG :information_source: Starting connection for com.android.billingclient.api.BillingClientImpl@8547d77
2023.10.13 13:16:01.501 27673 27673 Debug [Purchases] - DEBUG :information_source: Billing Service Setup finished for com.android.billingclient.api.BillingClientImpl@8547d77
2023.10.13 13:16:01.501 27673 27673 Debug [Purchases] - DEBUG :information_source: Updating pending purchase queue
2023.10.13 13:16:01.501 27673 27673 Debug [Purchases] - DEBUG :information_source: Querying purchases

1:37

##########################################################################################################################

1:37

2023.10.13 13:16:01.501 27673 27673 Debug [Purchases] - DEBUG :information_source: Billing Service Setup finished for com.android.billingclient.api.BillingClientImpl@8547d77
2023.10.13 13:16:01.501 27673 27673 Debug [Purchases] - DEBUG :information_source: Updating pending purchase queue
2023.10.13 13:16:01.501 27673 27673 Debug [Purchases] - DEBUG :information_source: Querying purchases
2023.10.13 13:16:01.502 27673 27673 Debug AndroidRuntime Shutting down VM
2023.10.13 13:16:01.503 27673 29740 Debug TrafficStats tagSocket(180) with statsTag=0xffffffff, statsUid=-1
0001.01.01 00:00:00.000 -1 -1 Info  --------- beginning of crash
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime FATAL EXCEPTION: main
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime Process: com.ritimus.ritimus, PID: 27673
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime java.lang.NoClassDefFoundError: Failed resolution of: Lcom/android/billingclient/api/QueryPurchasesParams;
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.BillingClientParamBuildersKt.buildQueryPurchasesParams(billingClientParamBuilders.kt:21)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.BillingWrapper$queryPurchases$1$1.invoke(BillingWrapper.kt:473)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.BillingWrapper$queryPurchases$1$1.invoke(BillingWrapper.kt:470)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.BillingWrapper.withConnectedClient(BillingWrapper.kt:801)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.BillingWrapper.access$withConnectedClient(BillingWrapper.kt:73)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.BillingWrapper$queryPurchases$1.invoke(BillingWrapper.kt:470)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.BillingWrapper$queryPurchases$1.invoke(BillingWrapper.kt:465)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.BillingWrapper.executePendingRequests$lambda$2$lambda$1$lambda$0(BillingWrapper.kt:107)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.BillingWrapper.lambda$NAiQOcTH2zoPCz9pqEkbQzfphj0(Unknown Source:0)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.revenuecat.purchases.google.-$$Lambda$BillingWrapper$NAiQOcTH2zoPCz9pqEkbQzfphj0.run(Unknown Source:2)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at android.os.Handler.handleCallback(Handler.java:942)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at android.os.Handler.dispatchMessage(Handler.java:99)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at android.os.Looper.loopOnce(Looper.java:226)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at android.os.Looper.loop(Looper.java:313)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at android.app.ActivityThread.main(ActivityThread.java:8757)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at java.lang.reflect.Method.invoke(Native Method)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime Caused by: java.lang.ClassNotFoundException: com.android.billingclient.api.QueryPurchasesParams
2023.10.13 13:16:01.507 27673 27673 Error AndroidRuntime  ... 18 more

Userlevel 4
Badge +6

Hey There,

 

Which version of Unity IAP are you using? The latest version of the purchases-unity SDK is not compatible alongside Unity IAP in observer mode. This is due to the fact that Unity IAP uses BillingClient 5 and our SDK uses BillingClient 6. We have this table of compatibility in the repository https://github.com/RevenueCat/purchases-unity/blob/main/VERSIONS.md 

 

Can you take a look at that and let me know if that helps?

Reply