Skip to main content
Question

PaywallActivity was not launched through the SDK. Please use the SDK methods to open the Paywall. This might happen on some Google automated testing, but shouldn't happen to users.

  • January 22, 2026
  • 3 replies
  • 31 views

Forum|alt.badge.img

App is getting crash on application onCreate : 

  Caused by java.lang.IllegalStateException: PaywallActivity was not launched through the SDK. Please use the SDK methods to open the Paywall. This might happen on some Google automated testing, but shouldn't happen to users.

       at com.revenuecat.purchases.ui.revenuecatui.activity.PaywallActivity.onCreate(PaywallActivity.kt:105)

       at android.app.Activity.performCreate(Activity.java:7994)

       at android.app.Activity.performCreate(Activity.java:7978)

       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1548)

       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3406)

       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3607)

       at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)

       at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)

       at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)

       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2068)

       at android.os.Handler.dispatchMessage(Handler.java:106)

       at android.os.Looper.loop(Looper.java:223)

       at android.app.ActivityThread.main(ActivityThread.java:7680)

       at java.lang.reflect.Method.invokeNative(Method.java)

       at java.lang.reflect.Method.invoke(Method.java:423)

       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)

       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

On Application onCreate, we are doing configuration : 

 val config = PurchasesConfiguration.Builder(context, apiKey)
            .showInAppMessagesAutomatically(false)
            .appUserID(userId)
            .build()

        Purchases.configure(config)

3 replies

antonio.pallares
RevenueCat Staff
Forum|alt.badge.img+1

Hi! Thanks for reporting this!

Yes, this is a known edge case that can occur when PaywallActivity (and other Activities in the SDK) is launched outside of the SDK-controlled flow, which most commonly happens during Google Play automated testing or review. In these cases, the Activity may be instantiated directly rather than via the SDK APIs.

We are definitely improving this behavior to avoid the crash.

In any case, ​@rupesh-81f9f4 could you tell us where you saw this crash? Did you see it in your crash reporting tool or are you able to reproduce it somehow?

Thanks again for the report!


Forum|alt.badge.img
  • Author
  • New Member
  • January 22, 2026

This crash was reported in Firebase Crashlytics, but I’m unable to reproduce it.


antonio.pallares
RevenueCat Staff
Forum|alt.badge.img+1

Thanks for the quick response!

Then it should be fixed by this PR indeed. We’ll include the fix in the next release of purchases-android, so please make sure to update the SDK to that version.

Of course, if you keep seeing those crash reports after the SDK update, don’t hesitate to let us know.

Thank you!