Fails to call queryPurchaseHistoryAsync on older BillingClient
Description
When using Adapty SDK v3.11.3, the following error appears in logcat.
E Adapty_v3.11.1: ERROR: No virtual method queryPurchaseHistoryAsync(Lcom/android/billingclient/api/QueryPurchaseHistoryParams;Lcom/android/billingclient/api/PurchaseHistoryResponseListener;)V in class Lcom/android/billingclient/api/BillingClient; or its super classes (declaration of 'com.android.billingclient.api.BillingClient' appears in base.apk!classes3.dex)
Version
v3.11.3
What platforms are you seeing the problem on?
Android
System info
System:
OS: macOS 15.6.1
CPU: (8) arm64 Apple M2
Memory: 148.02 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.11.0
path: ~/.nvm/versions/node/v22.11.0/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.0
path: ~/.nvm/versions/node/v22.11.0/bin/npm
Watchman:
version: 2025.05.26.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/***/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.0
- iOS 26.0
- macOS 26.0
- tvOS 26.0
- visionOS 26.0
- watchOS 26.0
Android SDK:
API Levels:
- "29"
- "30"
- "31"
- "33"
- "33"
- "34"
- "35"
- "36"
Build Tools:
- 30.0.2
- 30.0.3
- 31.0.0
- 33.0.0
- 33.0.1
- 33.0.2
- 34.0.0
- 35.0.0
- 36.0.0
System Images:
- android-30 | Google APIs Intel x86 Atom
- android-30 | Google Play ARM 64 v8a
- android-31 | Google APIs ARM 64 v8a
- android-33 | Google APIs ARM 64 v8a
- android-34 | Google APIs ARM 64 v8a
- android-34 | Google Play ARM 64 v8a
- android-35 | Google APIs ARM 64 v8a
- android-35 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10406996
Xcode:
version: 26.0/17A324
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.9
path: /usr/bin/javac
Ruby:
version: 3.4.4
path: /Users/***/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.5
wanted: 0.81.5
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Hi @enestatli. Are you using Google Play Billing v8?
Hi @enestatli. Are you using Google Play Billing v8?
We are planning. Do we need to enable something?
Hi @enestatli. Are you using Google Play Billing v8?
We are planning. Do we need to enable something?
We noticed that compatibility with v8 is not complete. Do you have the error when Google Play Billing v7 or v8 is used? What Adapty method is called?
The only error I got what I shared in the issue, just simply calling setup will cause this.
Thank you for the feedback! This is our Google Play Billing v8 support issue. The issue https://github.com/adaptyteam/AdaptySDK-React-Native/issues/180 was not resolved properly. We will fix this in the next minor release.
We added compatibility support for Android Google Play Billing Library v8 (compatibility only, not migration) in v3.14.0. Feel free to reopen if the issue persists.
I got a report from Adapty Android SDK that there's still an issue with billing v8 compatibility