Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79448

Android purchasing/billing library is deprecated

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.9.8, 5.15
    • Purchasing
    • None
    • Galaxy S10e (SM-G970F)
      Google Pixel
      Android 9
    • Android

    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:

      https://code.qt.io/cgit/qt/qtpurchasing.git/tree/src/android/src/org/qtproject/qt5/android/purchasing/QtInAppPurchase.java?id=b09a037836111a2e11a5c975573c02ba1f52379e

       

      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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rampe Rami Potinkara
              giantguppy Christopher Anderson
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              7 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes