Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android: cannot find solution about [A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade]
Forum Update on Monday, May 27th 2025

Android: cannot find solution about [A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade]

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 3.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    taedooly
    wrote on 17 Aug 2020, 14:36 last edited by
    #1

    Actually i'm new in qt and mobile application developing.
    I have some questions in android building application.

    1. When i set Android build SDK to android-21 in build option. error message below comes
    • What went wrong:
      Execution failed for task ':processDebugResources'.
      A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
      Android resource linking failed
      /Users/.../Qt_project/build-scrollView-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/android-build/AndroidManifest.xml:15:5-85:19: AAPT: error: attribute android:extractNativeLibs not found.

    I searched for solutions but only solution i found was "use newer SDK".
    I wanna make my app covers Android 5.0 minimum. how can i solve this??

    1. if i build with SDK android-api21, does it runs on all later version of Android os??
    T 1 Reply Last reply 17 Aug 2020, 15:43
    0
    • T taedooly
      17 Aug 2020, 14:36

      Actually i'm new in qt and mobile application developing.
      I have some questions in android building application.

      1. When i set Android build SDK to android-21 in build option. error message below comes
      • What went wrong:
        Execution failed for task ':processDebugResources'.
        A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
        Android resource linking failed
        /Users/.../Qt_project/build-scrollView-Android_for_armeabi_v7a_arm64_v8a_x86_x86_64_Clang_Qt_5_15_0_for_Android-Debug/android-build/AndroidManifest.xml:15:5-85:19: AAPT: error: attribute android:extractNativeLibs not found.

      I searched for solutions but only solution i found was "use newer SDK".
      I wanna make my app covers Android 5.0 minimum. how can i solve this??

      1. if i build with SDK android-api21, does it runs on all later version of Android os??
      T Offline
      T Offline
      taedooly
      wrote on 17 Aug 2020, 15:43 last edited by
      #2

      @taedooly ps. On android-api 24 ~ 30 Build has no problem. but on 21 ~ 23 it has same error.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        St.Stanislav
        wrote on 2 Oct 2020, 11:49 last edited by
        #3

        I have the same issue for android-17 with 5.15.* and 5.14.*
        Can applications based on that Qt versions be compiled for such old Android devices?

        1 Reply Last reply
        0
        • O Offline
          O Offline
          ontawho
          wrote on 5 Nov 2020, 21:43 last edited by
          #4

          First of all, I want to make clear the info about supported android API versions.

          As stated here: https://doc.qt.io/qt-5.14/android.html,
          Qt 5.14 (and 5.15), support only API 21 or later.
          But Qt 5.12 and 5.9 support API 16+ (https://doc.qt.io/qt-5.12/android.html, https://doc.qt.io/qt-5.9/android-support.html).

          As I understand, you don't really need to change android SDK version in build options to support the lower API, as minimum possible API automaticly set to minimum supported by your version of Qt.

          So technically if you just compile your code in Qt 5.12 without changes in default build options (it is "SDK: android-30" now), it gonna support API 16 or later. Or at least it works fine for me with device emulators (API 16) and a real tablet (API 17).
          The same goes for Qt 5.15 (API 21+), checked it for real device with API 23.

          Here explained some important differences between supported android API version of your app and required android SDK version for Qt, which probably can be confusing (smth like API != SDK and usually API < SDK):
          https://wiki.qt.io/Android => only section "Manual Installation".
          It described for old Qt versions, and I suppose similar principles work for newer. Thats why you get build errors in case if "SDK: android-23", but option "SDK: android-28" works on API 23 (just example).

          And I'm new in Qt too, so it would be nice if anyone correct me if there are errors.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved