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

"package" attribute in AndroidManifest is deprecated

    XMLWordPrintable

Details

    • Android
    • 91b0f269b (dev), 86f840fb0 (6.7), b740cd1f3 (dev), d32f7dc01 (6.7), fbb35cdb0 (dev), 0beaa63d4 (dev), e1767a63c (6.7), 31d72b0e2 (dev), 112e554cb (dev), 726e30183 (6.7), b82da570c (master)
    • 2023wk42FOQtforAndroid, 2023wk44FOQtforAndroid, 2023wk48FOQtforAndroid, 2024wk18FOQtforAndroid, 2024wk20s2FOQtforAndroid, 2024wk22s2FOQtforAndroid

    Description

      gradle prints this warning:

      package="foo.bar.app" found in source AndroidManifest.xml: <snip>/app/android-build/AndroidManifest.xml.Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace

      Using a custom AndroidManifest.xml without a package attribute runs into

      Invalid android manifest file: <snip>/app/android-build//AndroidManifest.xml
      

      because androiddeployqt checks for it's existence.

       

      More on this https://developer.android.com/build/configure-app-module

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-106907
          # Subject Branch Project Status CR V

          Activity

            People

              assam Assam Boudjelthia
              cajus Cajus Pollmeier
              Votes:
              7 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: