Skip to main content

I'm facing a crash on Android while using RevenueCat's Remote Paywall in my Flutter app. The error I’m getting is:

com.revenuecat.purchases.Purchases$Companion.getSharedInstance kl.h0 - No singleton instance. Make sure you configure Purchases before getting the default instance.

This doesn't happen on iOS, only on Android. I’ve followed the docs to initialize Purchases, but the issue persists and it’s causing a lot of crashes.

Anyone else experienced this or know how to fix it?

Thanks!

 

Hi @collins, thanks for reporting this. Is it possible your paywall is being shown in another flow that doesn’t follow the call to Purchases.configure? Where in your code are you calling configure? Typically, you should configure the RevenueCat SDK as early as possible, often in the main.dart file. If you can review this and, if desired, share a code snippet, that would be great.


@collins Also, can you please upgrade to the latest version (8.1.6) of purchases-flutter? An edge case issue was fixed that might be causing the error you’re seeing.


Reply