Skip to main content

Hi everyone,

I'm encountering a crash in my React Native app that appears to be coming from the react-native-purchases package. The error is showing up in Crashlytics and looks like this:

```
BillingWrapper.buildSubscriptionPurchaseParams
java.lang.NoClassDefFoundError - com.android.billingclient.api.zzce
com.revenuecat.purchases.google
BillingWrapper.kt:885
```

My react-native-purchase version is 8.9.1

Doing some search I can see this is related to `com.android.billingclient:billing` but the module should manage this dependence I should not add it 

Thanks for the help :)

Hi ​@ajouve, thanks for reaching out! 

This seems very similar to some reports we’ve received related to an issue in Google’s Billing client 7.1.0 and 7.1.1. See docs: https://www.revenuecat.com/docs/revenuecat-support/general-troubleshooting#seeing-crashes-like-nocorelibrarydesugaringexception-or-noclassdeffounderror-comandroidbillingclientapizzce-in-your-android-app

This issue is restricted to specific older devices in older versions of Android. Can you confirm the Android versions + devices where you’re seeing this crash?

We’ve reported this issue to Google in:

Right now, the best workaround is to enable core library desugaring as mentioned in the attached docs.

Please let us know if you need any more help with this and we would be glad to help!


@toni-rico Yes looks like this is android 6, 7 and 8 


Hi ​@ajouve thank you for letting us know. That issue is the one Tony linked above, where the current fix is for the you to enable core library desugaring in your app.


Reply