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. Issues with AAPT in Qt Creator
Qt 6.11 is out! See what's new in the release blog

Issues with AAPT in Qt Creator

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidaapt
3 Posts 2 Posters 1.5k Views 2 Watching
  • 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.
  • M Offline
    M Offline
    matelich
    wrote on last edited by
    #1

    Trying to build Qt 5.9.2 examples for android-arm on Windows. I'm getting the following errors:

    Starting process 'command 'C:\Users\tomm\Programs\Android\build-tools\26.0.2\aapt.exe''. Working directory: C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build Command: C:\Users\tomm\Programs\Android\build-tools\26.0.2\aapt.exe package -f --no-crunch -I C:\Users\tomm\Programs\Android\platforms\android-10\android.jar -M C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml -S C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\res\merged\debug -m -J C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\generated\source\r\debug -F C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package org.qtproject.example -0 apk --no-version-vectors
    Successfully started process 'command 'C:\Users\tomm\Programs\Android\build-tools\26.0.2\aapt.exe''
    C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:37: AAPT: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
        
    C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:43:36-165: AAPT: String types not allowed (at 'configChanges' with value 'orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation').
        
    C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:37: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
    
    C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:41: error: Error: String types not allowed (at 'configChanges' with value 'orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation').
    

    I have set my target/min versions to 21. I'm using sdk tools version 26.0.2.

    M 1 Reply Last reply
    0
    • M matelich

      Trying to build Qt 5.9.2 examples for android-arm on Windows. I'm getting the following errors:

      Starting process 'command 'C:\Users\tomm\Programs\Android\build-tools\26.0.2\aapt.exe''. Working directory: C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build Command: C:\Users\tomm\Programs\Android\build-tools\26.0.2\aapt.exe package -f --no-crunch -I C:\Users\tomm\Programs\Android\platforms\android-10\android.jar -M C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml -S C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\res\merged\debug -m -J C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\generated\source\r\debug -F C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package org.qtproject.example -0 apk --no-version-vectors
      Successfully started process 'command 'C:\Users\tomm\Programs\Android\build-tools\26.0.2\aapt.exe''
      C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:37: AAPT: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
          
      C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:43:36-165: AAPT: String types not allowed (at 'configChanges' with value 'orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation').
          
      C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:37: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
      
      C:\QtAndroid\Examples\Qt-5.9.2\qt3d\build-wireframe-Android_for_armeabi_v7a_GCC_4_9_Qt_5_9_2_for_Android_armv7-Release\android-build\build\intermediates\manifests\full\debug\AndroidManifest.xml:41: error: Error: String types not allowed (at 'configChanges' with value 'orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation').
      

      I have set my target/min versions to 21. I'm using sdk tools version 26.0.2.

      M Offline
      M Offline
      matelich
      wrote on last edited by
      #2

      This solved my issue: https://forum.qt.io/topic/83930/android-build-sdk-not-defined-check-android-settings/7, plus installing a later platform.

      For total android noobs, the instructions at http://doc.qt.io/qt-5/androidgs.html should be updated to not say android-10, since android 10 won't build the settings in the default AndroidManifest.xml

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        You can fill a suggestion for updating the documentation on the bug report system.

        Note that the Android folks have a tendency to make new releases that are adding/removing/moving stuff around and are breaking things here and there thus the documentation might not be accurate because of that.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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