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

[Qt 3D: Planets QML Example] Failed to build on android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.13
    • None
    • Android

    Description

      Qt 3D: Planets QML Example fails to build on android 

       

      Steps to Reproduce:

      1. Open Qt 3D: Planets QML Example
      2. Build and run it on android

      Reproducibility: 100%

      Logs:

      > Task :processDebugMainManifest FAILEDC:\Qt\Examples\Qt-6.2.13\qt3d\planets-qml\build\Android_Qt_6_2_13_Clang_arm64_v8a-Debug\android-build\AndroidManifest.xml Error:	android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
      See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
      
      FAILURE: Build failed with an exception.
      * What went wrong:Execution failed for task ':processDebugMainManifest'.> Manifest merger failed : android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
      * Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      * Get more help at https://help.gradle.org
      BUILD FAILED in 25s8 actionable tasks: 8 executedBuilding the android package failed!  -- For more information, run this command with --verbose.11:17:12: The process "C:\Qt\6.2.13\mingw_64\bin\androiddeployqt.exe" exited with code 14.Error while building/deploying project planets-qml (kit: Android Qt 6.2.13 Clang arm64-v8a)When executing step "Build Android APK"11:17:12: Elapsed time: 01:19.
       

      Tested on:

      Pixel 7 - Android 14

      Kit - Android Qt 6.2.13 Clang arm64-v8a

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            anjalota Anurup Jalota
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes