Android Build for SDK 26 failed with 'processReleaseResources FAILED' aapt.exe error

  • Hi,
    after changing the Android target SDK from 21 to 26 (because of dynamic permissions) on Qt5.11.1/Win10 I get the following error during the build process.

    Successfully started process 'command 'D:\PROGRAMS\Android\sdk-24.4.1\build-tools\24.0.1\aapt.exe''
    :processReleaseResources FAILED
    :processReleaseResources (Thread[main,5,main]) completed. Took 8.011 secs.
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':processReleaseResources'.
    > Failed to execute aapt
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
    Total time: 57.302 secs
    Stopped 0 worker daemon(s).
    Building the android package failed!
    16:58:04: The process "D:\PROGRAMS\Qt\Qt5.11.1\5.11.1\android_armv7\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project geoeye (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.1 for Android armv7))
    When executing step "Build Android APK"
    16:58:05: Elapsed time: 04:30.

    1.) Tools/options/devices/android/SDK Manager everthing seems ok:
    "Android settings are OK. (SDK Version 25.2.5, NDK Version: 10.4.0)"

    2.) I installed all SDK Tool versions with the SDK Manager sdk-24.4.1

    Why does Android Settings show SDK 25.2.5 and Build failure 24.0.1?

    Does maybe anyone know whats going wrong here?

  • For others you have the same problem. I solved this issue by completely replaced all android files of the project.

    1. Delete your Build
    2. Delete the Android folder of your project
    3. Projects/Build Android APK/Create Templates

Log in to reply