Compiling & Running Android App in Qt : Path Error



  • I am attempting to compile and run an android app in qt but getting weird errors. I have exhausted all other means to solving this problem and was hoping someone could help

    My compiler spits this out

    19:04:56: Running steps for project scanthatitem...
    19:04:56: Configuration unchanged, skipping qmake step.
    19:04:56: Starting: "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe"
    mingw32-make: Nothing to be done for 'first'.
    19:04:59: The process "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
    19:04:59: Removing directory C:\Users\meech_000\Documents\qtProjects\build-scanthatitem-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_4961f6-Debug\android-build
    19:05:00: Starting: "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" "INSTALL_ROOT=C:\Users\meech_000\Documents\qtProjects\build-scanthatitem-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_4961f6-Debug\android-build" install
    copy /y libscanthatitem.so C:\Users\meech_000\Documents\qtProjects\build-scanthatitem-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_4961f6-Debug\android-build\libs\armeabi-v7a\libscanthatitem.so
    1 file(s) copied.
    19:05:04: The process "C:\Qt\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
    19:05:04: Starting: "C:\Qt\5.8\android_armv7\bin\androiddeployqt.exe" --input C:/Users/meech_000/Documents/qtProjects/build-scanthatitem-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_4961f6-Debug/android-libscanthatitem.so-deployment-settings.json --output C:/Users/meech_000/Documents/qtProjects/build-scanthatitem-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_4961f6-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_45" --ant "C:/Users/meech_000/Documents/New Folder (4)/apache-ant-1.10.1/bin/ant.bat"
    The system cannot find the path specified.
    Generating Android Package
    Input file: C:/Users/meech_000/Documents/qtProjects/build-scanthatitem-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_4961f6-Debug/android-libscanthatitem.so-deployment-settings.json
    Output directory: C:/Users/meech_000/Documents/qtProjects/build-scanthatitem-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_4961f6-Debug/android-build/
    Application binary: C:/Users/meech_000/Documents/qtProjects/build-scanthatitem-Android_for_armeabi_v7a_GCC_4_9_Qt_5_8_0_4961f6-Debug/libscanthatitem.so
    Android build platform: android-25
    Install to device: No
    Building the android package failed!
    -- For more information, run this command with --verbose.
    19:05:14: The process "C:\Qt\5.8\android_armv7\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project scanthatitem (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
    When executing step "Build Android APK"
    19:05:15: Elapsed time: 00:19.

    Getting the general message:

    Running Windows Runtime device detection.
    No winrtrunner.exe found.
    The system cannot find the path specified.
    The system cannot find the path specified.

    If someone has ran into this problem and has a solution I would appreciate it



  • @elrio400 I see this "The system cannot find the path specified". Make sure the path for Android SDK, NDK, JDK and Ant is configured properly.


  • Moderators

    @elrio400 said in Compiling & Running Android App in Qt : Path Error:

    C:/Users/meech_000/Documents/New Folder (4)/apache-ant-1.10.1/bin/ant.bat

    One note: you should really avoid paths containing spaces like in the path above! Such paths are a constant source of troubles. Also avoid characters lile ( and ).
    Also I see you're using ant - you should switch to Gradle - you just need to activate it in QtCreator.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.