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

[Android] Add support for APK Signature Scheme v2

    XMLWordPrintable

    Details

    • Platform/s:
      Android
    • Sprint:
      2021wk22PO2, 2021wk24PO2, 2021wk30POAndroid, 2021wk32POAndroid, 2021wk34POAndroid

      Description

      Starting in August 2021, apps must target API level 30 (Android 11) or above. That also means that APK Signature Scheme v2 is now required. 

      https://developer.android.com/distribute/best-practices/develop/target-sdk#pre11

      Currently if I set targetSdkVersion = 30 in build.gradle deployment in the aab format fails on Android 11 devices. I experienced this issue after I updated a Samsung phone from Android 10 to Android 11.

      Skipping createRCC
      adb: failed to install C:/_t/build-untitled36-Android_Qt_5_15_2_Clang_Multi_Abi_c76acd-Release/android-build//build/outputs/apk/release/android-build-release-signed.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Scanning Failed.: No signature found in package of version 2 or newer for package org.qtproject.example]
      Installing Android package to device.
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              villevoutilainen_qt Ville Voutilainen
              Reporter:
              adrian.gabureanu Adrian Gabureanu
              Votes:
              27 Vote for this issue
              Watchers:
              35 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes