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

"AAPT2 is not supported on 32-bit Linux" when building Qt Quick application for Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Invalid
    • Affects Version/s: 5.14
    • Fix Version/s: None
    • Component/s: Build System
    • Labels:
      None
    • Environment:
      Ubuntu 18.04.3 64-bit
      SDK Version: 26.1.1, NDK Version: 20.0.5594570
    • Platform/s:
      Android

      Description

      I get this error when building any Qt Quick project:

      > Task :mergeDebugResources FAILED
      Task :mergeDebugResources in android-build Finished
      :mergeDebugResources (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 2.391 secs.
      19 actionable tasks: 2 executed, 17 up-to-date
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':mergeDebugResources'.
      > Multiple task action failures occurred:
         > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
            > AAPT2 aapt2-3.5.0-5435860-linux Daemon #1: AAPT2 is not supported on 32-bit Linux, see supported systems on https://developer.android.com/studio#system-requirements-a-namerequirementsa
      
         > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
            > AAPT2 aapt2-3.5.0-5435860-linux Daemon #0: AAPT2 is not supported on 32-bit Linux, see supported systems on https://developer.android.com/studio#system-requirements-a-namerequirementsa
      
         > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
            > AAPT2 aapt2-3.5.0-5435860-linux Daemon #3: AAPT2 is not supported on 32-bit Linux, see supported systems on https://developer.android.com/studio#system-requirements-a-namerequirementsa
      
         > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
            > AAPT2 aapt2-3.5.0-5435860-linux Daemon #2: AAPT2 is not supported on 32-bit Linux, see supported systems on https://developer.android.com/studio#system-requirements-a-namerequirementsa
      
         > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
            > AAPT2 aapt2-3.5.0-5435860-linux Daemon #4: AAPT2 is not supported on 32-bit Linux, see supported systems on https://developer.android.com/studio#system-requirements-a-namerequirementsa
      
         > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
            > AAPT2 aapt2-3.5.0-5435860-linux Daemon #5: AAPT2 is not supported on 32-bit Linux, see supported systems on https://developer.android.com/studio#system-requirements-a-namerequirementsa
      
         > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
            > AAPT2 aapt2-3.5.0-5435860-linux Daemon #6: AAPT2 is not supported on 32-bit Linux, see supported systems on https://developer.android.com/studio#system-requirements-a-namerequirementsa
      
         > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
            > AAPT2 aapt2-3.5.0-5435860-linux Daemon #7: AAPT2 is not supported on 32-bit Linux, see supported systems on https://developer.android.com/studio#system-requirements-a-namerequirementsa
      
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --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 6s
      Building the android package failed!
      13:50:42: The process "/media/dev2/qt5.14-android-debug/qtbase/bin/androiddeployqt" exited with code 14.
      Error while building/deploying project quick (kit: qt5.14-android-debug)
      When executing step "Build Android APK"
      13:50:42: Elapsed time: 00:08.
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes