Details
-
Bug
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
5.9.8, 5.15
-
None
-
Galaxy S10e (SM-G970F)
Google Pixel
Android 9
Description
I'm trying to use Qt Purchasing on two phones running Android 9 and I'm getting two different errors. I'm guessing this is because the AIDL billing library has been deprecated.
"Warning: AIDL is now deprecated and will be removed in a future release. To implement Google Play Billing features, use the Google Play Billing library."
https://developer.android.com/google/play/billing/billing_reference
I can see here that it's using the AIDL billing library:
On a Galaxy S10e (SM-G970F) I get this (from above file):
"E QtInAppPurchase: In-app billing not supported"
On a Google Pixel I get the following crash:
E [app.ID]: No implementation found for void org.qtproject.qt5.android.purchasing.QtInAppPurchase.purchasedProductsQueried(long) (tried Java_org_qtproject_qt5_android_purchasing_QtInAppPurchase_purchasedProductsQueried and Java_org_qtproject_qt5_android_purchasing_QtInAppPurchase_purchasedProductsQueried_J)E [app.ID]: No implementation found for void org.qtproject.qt5.android.purchasing.QtInAppPurchase.purchasedProductsQueried(long) (tried Java_org_qtproject_qt5_android_purchasing_QtInAppPurchase_purchasedProductsQueried and Java_org_qtproject_qt5_android_purchasing_QtInAppPurchase_purchasedProductsQueriedJ)D AndroidRuntime: Shutting down VME AndroidRuntime: FATAL EXCEPTION: mainE AndroidRuntime: Process: com.r[app.ID]d, PID: 28925E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for void org.qtproject.qt5.android.purchasing.QtInAppPurchase.purchasedProductsQueried(long) (tried Java_org_qtproject_qt5_android_purchasing_QtInAppPurchase_purchasedProductsQueried and Java_org_qtproject_qt5_android_purchasing_QtInAppPurchase_purchasedProductsQueriedJ)E AndroidRuntime: at org.qtproject.qt5.android.purchasing.QtInAppPurchase.purchasedProductsQueried(Native Method)E AndroidRuntime: at org.qtproject.qt5.android.purchasing.QtInAppPurchase.access$400(QtInAppPurchase.java:52)E AndroidRuntime: at org.qtproject.qt5.android.purchasing.QtInAppPurchase$1$1$1.run(QtInAppPurchase.java:102)E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6669)E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)E [app name]: [01:17:05:94] <ERROR> <[app name]Activity> java.lang.UnsatisfiedLinkError: No implementation found for void org.qtproject.qt5.android.purchasing.QtInAppPurchase.purchasedProductsQueried(long) (tried Java_org_qtproject_qt5_android_purchasing_QtInAppPurchase_purchasedProductsQueried and Java_org_qtproject_qt5_android_purchasing_QtInAppPurchase_purchasedProductsQueried_J)E [app name]: at org.qtproject.qt5.android.purchasing.QtInAppPurchase.purchasedProductsQueried(Native Method)E [app name]: at org.qtproject.qt5.android.purchasing.QtInAppPurchase.access$400(QtInAppPurchase.java:52)E [app name]: at org.qtproject.qt5.android.purchasing.QtInAppPurchase$1$1$1.run(QtInAppPurchase.java:102)E [app name]: at android.os.Handler.handleCallback(Handler.java:873)E [app name]: at android.os.Handler.dispatchMessage(Handler.java:99)E [app name]: at android.os.Looper.loop(Looper.java:193)E [app name]: at android.app.ActivityThread.main(ActivityThread.java:6669)E [app name]: at java.lang.reflect.Method.invoke(Native Method)E [app name]: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)E [app name]: at com.androi[app.ID]
Build SDK 28
Target SDK 28
I'm building Qt via tag "v5.9.8" (bf9220699fd3cda8285efadca9855c0b141fbc8f).
Attachments
Issue Links
- is duplicated by
-
QTBUG-80807 Qt Purchasing uses deprecated AIDL on Android
- Closed
- relates to
-
QTBUG-90839 Google Play billing api must be updated
- Closed
-
QTBUG-84776 Move QtPurchasing as an example
- Closed