Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

When executing step "Build Android APK"



  • 13:18:32: 进程"D:\Qt5.7.1\Tools\mingw530_32\bin\mingw32-make.exe"正常退出。
    13:18:32: Starting: "D:\Qt5.7.1\5.7\android_armv7\bin\androiddeployqt.exe" --input F:/android_QT/build-demo2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-libdemo2.so-deployment-settings.json --output F:/android_QT/build-demo2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_111" --ant D:/apache-ant-1.9.7/bin/ant.bat
    Generating Android Package
    Input file: F:/android_QT/build-demo2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-libdemo2.so-deployment-settings.json
    Output directory: F:/android_QT/build-demo2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-build/
    Application binary: F:/android_QT/build-demo2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/libdemo2.so
    Android build platform: android-25
    Install to device: No
    Buildfile: F:\android_QT\build-demo2-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug\android-build\build.xml

    -set-mode-check:

    -set-debug-files:

    -check-env:
    [checkenv] Android SDK Tools Revision 24.4.1
    [checkenv] Installed at D:\android-sdk-windows

    -setup:
    [echo] Project Name: QtApp
    [gettype] Project Type: Application

    -set-debug-mode:

    -debug-obfuscation-check:

    -pre-build:

    -build-setup:

    BUILD FAILED
    D:\android-sdk-windows\tools\ant\build.xml:483: SDK does not have any Build Tools installed.

    Total time: 1 second
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl
    Building the android package failed!
    -- For more information, run this command with --verbose.
    13:18:54: 进程"D:\Qt5.7.1\5.7\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。
    Error while building/deploying project demo2 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.1))
    When executing step "Build Android APK"


  • Moderators

    @THEFree said in When executing step "Build Android APK":

    D:\android-sdk-windows\tools\ant\build.xml:483: SDK does not have any Build Tools installed.

    The error message is pretty clear :-) Open your Android SDK manager and install the build tools package.


Log in to reply