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. Solved: I can't build my project for Android
Forum Updated to NodeBB v4.3 + New Features

Solved: I can't build my project for Android

Scheduled Pinned Locked Moved Mobile and Embedded
mobilebuildandroidarm
4 Posts 2 Posters 12.8k Views 1 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.
  • G Offline
    G Offline
    gurolcay
    wrote on last edited by gurolcay
    #1

    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.
    
    G 1 Reply Last reply
    0
    • G gurolcay

      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.
      
      G Offline
      G Offline
      gurolcay
      wrote on last edited by
      #2

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

      1 Reply Last reply
      1
      • Dmitry Yu OkunevD Offline
        Dmitry Yu OkunevD Offline
        Dmitry Yu Okunev
        wrote on last edited by Dmitry Yu Okunev
        #3

        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"
        
        1 Reply Last reply
        0
        • Dmitry Yu OkunevD Offline
          Dmitry Yu OkunevD Offline
          Dmitry Yu Okunev
          wrote on last edited by
          #4

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

          1 Reply Last reply
          3

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved