Solved: I can't build my project for Android



  • Hello. I can't build my project for android phone. Please help me.
    This is compile output:

    13:40:07: Running steps for project CarInfo...
    13:40:07: Configuration unchanged, skipping qmake step.
    13:40:07: Starting: "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" 
    mingw32-make: Nothing to be done for 'first'.
    13:40:07: The process "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
    13:40:07: Removing directory D:\Qt_Development\build-CarInfo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build
    13:40:07: Starting: "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" INSTALL_ROOT="D:\Qt_Development\build-CarInfo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build" install
    copy /y libCarInfo.so D:\Qt_Development\build-CarInfo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build\libs\armeabi-v7a\libCarInfo.so
            1 file(s) copied.
    13:40:08: The process "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
    13:40:08: Starting: "C:\Qt\5.5\android_armv7\bin\androiddeployqt.exe" --input D:/Qt_Development/build-CarInfo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libCarInfo.so-deployment-settings.json --output D:/Qt_Development/build-CarInfo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build --deployment bundled --android-platform android-22 --jdk "C:/Program Files/Java/jdk1.8.0_51" --ant C:/apache-ant-1.9.6-bin/apache-ant-1.9.6/bin/ant.bat
    Generating Android Package
      Input file: D:/Qt_Development/build-CarInfo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libCarInfo.so-deployment-settings.json
      Output directory: D:/Qt_Development/build-CarInfo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/
      Application binary: D:/Qt_Development/build-CarInfo-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libCarInfo.so
      Android build platform: android-22
      Install to device: No
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: HelperWidgets
    Cannot find android sources in D:/Qt_Development/CarInfo/android13:40:15: The process "C:\Qt\5.5\android_armv7\bin\androiddeployqt.exe" exited with code 11.
    Error while building/deploying project CarInfo (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.0))
    When executing step "Build Android APK"
    13:40:15: Elapsed time: 00:08.
    


  • I solved this problem. solving: I created a new project and I copied all ex-project files to new one. the problem solved.



  • Hello.

    I faced the same issue. And a recreation of the project is not a solution but just a workaround, IMO.

    Can anybody advice something else?

    Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Release/android-build --deployment bundled --android-platform android-23 --jdk /usr/lib/jvm/java-7-openjdk-amd64 --ant /usr/bin/ant
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
    Warning: QML import could not be resolved in any of the import paths: HelperWidgets
    Generating Android Package
      Input file: /home/xaionaro/build-mephi-tasks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Release/android-libmephi-tasks.so-deployment-settings.json
      Output directory: /home/xaionaro/build-mephi-tasks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Release/android-build/
      Application binary: /home/xaionaro/build-mephi-tasks-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_1-Release/libmephi-tasks.so
      Android build platform: android-23
      Install to device: No
    Cannot find android sources in /home/xaionaro/mephi-tasks/android18:06:30: The process "/home/xaionaro/Qt/5.5/android_armv7/bin/androiddeployqt" exited with code 11.
    Error while building/deploying project mephi-tasks (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.1))
    When executing step "Build Android APK"
    


  • Found the solution: I just forgot to copy my ANDROID_PACKAGE_SOURCE_DIR (see the .pro file) from the old PC.


Log in to reply
 

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