Skip to main content
Question

[Android SDK] Rejecting re-init on failed class ProductDataResponseListener

  • November 15, 2024
  • 3 replies
  • 55 views

Forum|alt.badge.img

I am using RevenueCat to manage my Google Play Subscription billing on my Android app. I am NOT using Amazon to make my purchases at all. However, when I start the app, I get logs that points to Amazon purchases:


Rejecting re-init on previously-failed class java.lang.Class<com.revenuecat.purchases.amazon.listener.ProductDataResponseListener>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/amazon/device/iap/PurchasingListener;

 

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.amazon.device.iap.PurchasingListener" on path

 

My confusion here is that I am not using any Amazon-related purchases. In my gradle file, I just have the purchases library and that’s it. When I set the store on RevenueCat configure, I set it to Google Play Store. 

implementation("com.revenuecat.purchases:purchases:7.0.0")
This post has been closed for comments

3 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 383 replies
  • November 19, 2024

Hi, are you using a physical device? If so, what kind/OS version?


Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • November 20, 2024

Using Samsung S9 on Android 9. Though same issue occurs on multiple other samsung phones that I’ve tested, ranging from Android 9 ~ 12 ish


Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 383 replies
  • November 26, 2024

Thanks for that info. Just to double-check, you don’t have this extra dependency in your gradle, right?

https://www.revenuecat.com/docs/getting-started/installation/android#additional-dependencies

implementation 'com.revenuecat.purchases:purchases-store-amazon:7.0.0'

 


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