Skip to main content
Question

my app crasehs when i want to run SDK initialization saying '' No static method configure...''

  • June 24, 2025
  • 1 reply
  • 27 views

Forum|alt.badge.img+2

I added the SDK initialization in my code. But when I launch the application, it crashes and shows this error 

Your app just crashed. See the error below.
java.lang.NoSuchMethodError: No static method configure(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Lcom/revenuecat/purchases/PurchasesAreCompletedBy;Lcom/revenuecat/purchases/common/PlatformInfo;Lcom/revenuecat/purchases/Store;Lcom/revenuecat/purchases/DangerousSettings;Ljava/lang/Boolean;Ljava/lang/String;)V in class Lcom/revenuecat/purchases/hybridcommon/CommonKt; or its super classes (declaration of 'com.revenuecat.purchases.hybridcommon.CommonKt' appears in /data/app/~~S6Gdua0r00AvocmBAY814g==/com.heavenmobile.app-Nfa1Ti6hbTxWjSgfJhC-wg==/base.apk!classes8.dex)
  com.revenuecat.purchases.react.RNPurchasesModule.setupPurchases(RNPurchasesModule.java:95)
  com.facebook.jni.NativeRunnable.run(Native Method)
  android.os.Handler.handleCallback(Handler.java:942)
  android.os.Handler.dispatchMessage(Handler.java:99)
  com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.kt:20)
  android.os.Looper.loopOnce(Looper.java:201)
  android.os.Looper.loop(Looper.java:288)
  com.facebook.react.bridge.queue.MessageQueueThreadImpl$Companion.startNewBackgroundThread$lambda$1(MessageQueueThreadImpl.kt:175)
  com.facebook.react.bridge.queue.MessageQueueThreadImpl$Companion.$r8$lambda$ldnZnqelhYFctGaUKkOKYj5rxo4(Unknown Source:0)
  com.facebook.react.bridge.queue.MessageQueueThreadImpl$Companion$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
  java.lang.Thread.run(Thread.java:1012)

 

For your information, I'm using React Native version 0.79.4, Expo 53.0.12, and react-native-purchases 7.28.1. I’m running my application on a physical Android device using an APK, and I'm in a development build. Can somebody help me please it would be very appreciated.

This post has been closed for comments

1 reply

Forum|alt.badge.img+2

its all correct now, i have change the version of  react-native-purchases-ui to 7.19.0 and change the react-native-purchases ^7.28.1 to react-native-purchases 7.28.1.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings