Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. The process "...\android_armv7\bin\androiddeployqt.exe" exited with code 14.
QtWS25 Last Chance

The process "...\android_armv7\bin\androiddeployqt.exe" exited with code 14.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
24 Posts 4 Posters 7.5k Views
  • 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.
  • tomyT Offline
    tomyT Offline
    tomy
    wrote on last edited by tomy
    #1

    Hi all,

    Here is my setting for JDK, NDK and SDK. Should I replace any of them with some other version?

    0_1555960739441_1.PNG

    I'm going to build a QML app. When I hit the build button on Qt Creator 4.8.1, I get no APK file but the error below:

    The process "D:\Qt\Qt5.12.1\5.12.1\android_armv7\bin\androiddeployqt.exe" exited with code 14. Error while building/deploying project Ping-Pong (kit: Android for armeabi-v7a (Clang Qt 5.12.1 for Android ARMv7)) When executing step "Build Android APK"

    What's the reason for that, please?

    J.HilkJ 1 Reply Last reply
    0
    • tomyT Offline
      tomyT Offline
      tomy
      wrote on last edited by
      #2

      Could it be a problem with the version of Qt, which is 5.12.1?

      1 Reply Last reply
      0
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #3

        Do you see any other error before this step ?

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply
        0
        • tomyT tomy

          Hi all,

          Here is my setting for JDK, NDK and SDK. Should I replace any of them with some other version?

          0_1555960739441_1.PNG

          I'm going to build a QML app. When I hit the build button on Qt Creator 4.8.1, I get no APK file but the error below:

          The process "D:\Qt\Qt5.12.1\5.12.1\android_armv7\bin\androiddeployqt.exe" exited with code 14. Error while building/deploying project Ping-Pong (kit: Android for armeabi-v7a (Clang Qt 5.12.1 for Android ARMv7)) When executing step "Build Android APK"

          What's the reason for that, please?

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @tomy From what I have seen from other users, it seems like the latest ndk has some problems with Qt. I assume 19c is the latest ?

          I'm using 18b and that one is working fine for me, haven't updated in a while.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          tomyT 1 Reply Last reply
          0
          • tomyT Offline
            tomyT Offline
            tomy
            wrote on last edited by
            #5

            Thanks to you both guys.
            The problem apparently is with gradle.

            FAILURE: Build failed with an exception.

            * Where: Build file 'D:\Projects\QML\Ping-Pong\build-Ping-Pong-Android_for_armeabi_v7a_Clang_Qt_5_12_1_for_Android_ARMv7-Debug\android-build\build.gradle' line: 39

            * What went wrong:
            A problem occurred evaluating root project 'android-build'.
            > Invalid revision: 29.0.0-preview

            * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

            * Get more help at https://help.gradle.org

            BUILD FAILED in 10s 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: QtQuick.Controls.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.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. 12:11:55: The process "D:\Qt\Qt5.12.1\5.12.1\android_armv7\bin\androiddeployqt.exe" exited with code 14. Error while building/deploying project Ping-Pong (kit: Android for armeabi-v7a (Clang Qt 5.12.1 for Android ARMv7)) When executing step "Build Android APK"

            My SDK folder is set somewhere else from the gradle folder set to the system environment.

            J.HilkJ 1 Reply Last reply
            0
            • tomyT tomy

              Thanks to you both guys.
              The problem apparently is with gradle.

              FAILURE: Build failed with an exception.

              * Where: Build file 'D:\Projects\QML\Ping-Pong\build-Ping-Pong-Android_for_armeabi_v7a_Clang_Qt_5_12_1_for_Android_ARMv7-Debug\android-build\build.gradle' line: 39

              * What went wrong:
              A problem occurred evaluating root project 'android-build'.
              > Invalid revision: 29.0.0-preview

              * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

              * Get more help at https://help.gradle.org

              BUILD FAILED in 10s 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: QtQuick.Controls.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Fusion.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Imagine.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. 12:11:55: The process "D:\Qt\Qt5.12.1\5.12.1\android_armv7\bin\androiddeployqt.exe" exited with code 14. Error while building/deploying project Ping-Pong (kit: Android for armeabi-v7a (Clang Qt 5.12.1 for Android ARMv7)) When executing step "Build Android APK"

              My SDK folder is set somewhere else from the gradle folder set to the system environment.

              J.HilkJ Offline
              J.HilkJ Offline
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @tomy said in The process "...\android_armv7\bin\androiddeployqt.exe" exited with code 14.:

              29.0.0-preview

              use an other version. Preferably the last non preview one.


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              tomyT 1 Reply Last reply
              0
              • ashajgA Offline
                ashajgA Offline
                ashajg
                wrote on last edited by
                #7

                Is this problem solved?
                This is a problem with gradle it seems. Qt will try to download gradle by itself for the first time. If it is unable to download gradle due to network problem or something it will throw such errors.

                1 Reply Last reply
                0
                • J.HilkJ J.Hilk

                  @tomy said in The process "...\android_armv7\bin\androiddeployqt.exe" exited with code 14.:

                  29.0.0-preview

                  use an other version. Preferably the last non preview one.

                  tomyT Offline
                  tomyT Offline
                  tomy
                  wrote on last edited by tomy
                  #8

                  @J.Hilk

                  use an other version. Preferably the last non preview one.

                  An other version of what? Gradle? I downloaded the complete version of gradle 5.4 from there and set its path to system variables and went for re-building the project. The same result! :(

                  Should I use the gradle inside the SDK directory>?

                  J.HilkJ 1 Reply Last reply
                  0
                  • tomyT tomy

                    @J.Hilk

                    use an other version. Preferably the last non preview one.

                    An other version of what? Gradle? I downloaded the complete version of gradle 5.4 from there and set its path to system variables and went for re-building the project. The same result! :(

                    Should I use the gradle inside the SDK directory>?

                    J.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on last edited by
                    #9

                    @tomy
                    IIRC that is referring to the sdk platform
                    0_1556015788586_ac974edb-bc1d-4875-8a56-d646592ece4a-image.png


                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    tomyT 1 Reply Last reply
                    1
                    • J.HilkJ J.Hilk

                      @tomy
                      IIRC that is referring to the sdk platform
                      0_1556015788586_ac974edb-bc1d-4875-8a56-d646592ece4a-image.png

                      tomyT Offline
                      tomyT Offline
                      tomy
                      wrote on last edited by tomy
                      #10

                      @J.Hilk

                      Should I uninstall Android SDK Platform-tools 28.0.2?

                      Here's also the packages:

                      0_1556016780743_Capture.PNG

                      J.HilkJ 1 Reply Last reply
                      0
                      • tomyT tomy

                        @J.Hilk

                        Should I uninstall Android SDK Platform-tools 28.0.2?

                        Here's also the packages:

                        0_1556016780743_Capture.PNG

                        J.HilkJ Offline
                        J.HilkJ Offline
                        J.Hilk
                        Moderators
                        wrote on last edited by
                        #11

                        @tomy I would uninstall all preview packages. That was cause for a similar issue from on other poster recently.

                        Can't quite find the post.
                        "The search function is not the best" ...


                        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                        Q: What's that?
                        A: It's blue light.
                        Q: What does it do?
                        A: It turns blue.

                        tomyT 1 Reply Last reply
                        1
                        • J.HilkJ J.Hilk

                          @tomy I would uninstall all preview packages. That was cause for a similar issue from on other poster recently.

                          Can't quite find the post.
                          "The search function is not the best" ...

                          tomyT Offline
                          tomyT Offline
                          tomy
                          wrote on last edited by
                          #12

                          @J.Hilk

                          I removed all packages with the word "preview" in SDK:

                          0_1556018053870_Capture.PNG

                          Yet, the same errors!

                          J.HilkJ 1 Reply Last reply
                          0
                          • tomyT tomy

                            @J.Hilk

                            I removed all packages with the word "preview" in SDK:

                            0_1556018053870_Capture.PNG

                            Yet, the same errors!

                            J.HilkJ Offline
                            J.HilkJ Offline
                            J.Hilk
                            Moderators
                            wrote on last edited by
                            #13

                            @tomy
                            just to make sure, you did a complete rebuild after the removal ?
                            deleted building dir, rerun qmake.. the usual ?


                            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                            Q: What's that?
                            A: It's blue light.
                            Q: What does it do?
                            A: It turns blue.

                            tomyT 1 Reply Last reply
                            2
                            • J.HilkJ J.Hilk

                              @tomy
                              just to make sure, you did a complete rebuild after the removal ?
                              deleted building dir, rerun qmake.. the usual ?

                              tomyT Offline
                              tomyT Offline
                              tomy
                              wrote on last edited by tomy
                              #14

                              @J.Hilk

                              WOW Hilk! :) :)
                              I did these and re-built the project. This time it built the APK and prior errors became vanished except for few normal warnings! :)

                              Thanks so much for your help. Vielen Dank. :)

                              1 Reply Last reply
                              1
                              • J.HilkJ J.Hilk

                                @tomy From what I have seen from other users, it seems like the latest ndk has some problems with Qt. I assume 19c is the latest ?

                                I'm using 18b and that one is working fine for me, haven't updated in a while.

                                tomyT Offline
                                tomyT Offline
                                tomy
                                wrote on last edited by tomy
                                #15

                                @J.Hilk

                                I'm using 18b and that one is working fine for me, haven't updated in a while.

                                Do you mean that when some version of NDK, like 18b, is working properly for apps for the time being, we shouldn't replace it with some newer version even if a newer version of Android is published and installed on Android devices?

                                I mean, can it support future versions of Android and will work properly on devices running those new versions too?

                                And about JDK, what version do you suggest to be good for recent and probably prior versions of Android, please?
                                As you know, the current version of Android is 9, I suppose.

                                J.HilkJ 1 Reply Last reply
                                0
                                • tomyT tomy

                                  @J.Hilk

                                  I'm using 18b and that one is working fine for me, haven't updated in a while.

                                  Do you mean that when some version of NDK, like 18b, is working properly for apps for the time being, we shouldn't replace it with some newer version even if a newer version of Android is published and installed on Android devices?

                                  I mean, can it support future versions of Android and will work properly on devices running those new versions too?

                                  And about JDK, what version do you suggest to be good for recent and probably prior versions of Android, please?
                                  As you know, the current version of Android is 9, I suppose.

                                  J.HilkJ Offline
                                  J.HilkJ Offline
                                  J.Hilk
                                  Moderators
                                  wrote on last edited by
                                  #16

                                  @tomy

                                  well
                                  that's a bit complicated.
                                  For a long time Qt was limited to a specific ndk, as some old stuff was dropped, that Qt relied on.

                                  With 5.12 and onwards it should now be "latest version of ndk" according to the docu.
                                  That, apparently, does not include the preview/release candidates.

                                  In the end you're limited to what google permits on the play store and that is, IIRC, currently the sdk platform 27 which is Android 7 !?
                                  That means if you want to upload a new app or update an old one your Target SDK should be 27 or newer.

                                  I personally think, If it ain't broke, don't fix it ;-)

                                  I'm running jdk1.8.0_192 and I'm not updating, if I don't have to.


                                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                  Q: What's that?
                                  A: It's blue light.
                                  Q: What does it do?
                                  A: It turns blue.

                                  tomyT 1 Reply Last reply
                                  1
                                  • J.HilkJ J.Hilk

                                    @tomy

                                    well
                                    that's a bit complicated.
                                    For a long time Qt was limited to a specific ndk, as some old stuff was dropped, that Qt relied on.

                                    With 5.12 and onwards it should now be "latest version of ndk" according to the docu.
                                    That, apparently, does not include the preview/release candidates.

                                    In the end you're limited to what google permits on the play store and that is, IIRC, currently the sdk platform 27 which is Android 7 !?
                                    That means if you want to upload a new app or update an old one your Target SDK should be 27 or newer.

                                    I personally think, If it ain't broke, don't fix it ;-)

                                    I'm running jdk1.8.0_192 and I'm not updating, if I don't have to.

                                    tomyT Offline
                                    tomyT Offline
                                    tomy
                                    wrote on last edited by
                                    #17

                                    @J.Hilk, thanks.

                                    With 5.12 and onwards it should now be "latest version of ndk" according to the docu.
                                    That, apparently, does not include the preview/release candidates.

                                    I didn't understand the part "the preview/release candidates" for ndk!

                                    If we want to use the latest "stable" version of ndk, so the choice will be android-ndk-r19c-windows-x86_64.zip, but you're seemingly using this r18b android-ndk-r18b-windows-x86_64.zip. (For Window x64 for instance).
                                    So the question is why do you use r18b while Docs says you need to use r19c, please?

                                    In the end you're limited to what google permits on the play store and that is, IIRC, currently the sdk platform 27 which is Android 7 !?

                                    Apparenlty the latest version is Pie 9 API level 28.

                                    That means if you want to upload a new app or update an old one your Target SDK should be 27 or newer.

                                    My android build sdk (for any QML app for Android) is always on android-28.
                                    Bad habit?

                                    I personally think, If it ain't broke, don't fix it ;-)

                                    I didn't get this part either! :) What "it" do you say please?

                                    I'm running jdk1.8.0_192 and I'm not updating, if I don't have to.

                                    The question is, when do you think/feel you have to update it?
                                    I want to copy that habit. When should I know it's time to update sdk, jdk, or ndk generally? Does it depend upon the version of Qt or android published or some other thing/item?

                                    J.HilkJ 1 Reply Last reply
                                    0
                                    • tomyT tomy

                                      @J.Hilk, thanks.

                                      With 5.12 and onwards it should now be "latest version of ndk" according to the docu.
                                      That, apparently, does not include the preview/release candidates.

                                      I didn't understand the part "the preview/release candidates" for ndk!

                                      If we want to use the latest "stable" version of ndk, so the choice will be android-ndk-r19c-windows-x86_64.zip, but you're seemingly using this r18b android-ndk-r18b-windows-x86_64.zip. (For Window x64 for instance).
                                      So the question is why do you use r18b while Docs says you need to use r19c, please?

                                      In the end you're limited to what google permits on the play store and that is, IIRC, currently the sdk platform 27 which is Android 7 !?

                                      Apparenlty the latest version is Pie 9 API level 28.

                                      That means if you want to upload a new app or update an old one your Target SDK should be 27 or newer.

                                      My android build sdk (for any QML app for Android) is always on android-28.
                                      Bad habit?

                                      I personally think, If it ain't broke, don't fix it ;-)

                                      I didn't get this part either! :) What "it" do you say please?

                                      I'm running jdk1.8.0_192 and I'm not updating, if I don't have to.

                                      The question is, when do you think/feel you have to update it?
                                      I want to copy that habit. When should I know it's time to update sdk, jdk, or ndk generally? Does it depend upon the version of Qt or android published or some other thing/item?

                                      J.HilkJ Offline
                                      J.HilkJ Offline
                                      J.Hilk
                                      Moderators
                                      wrote on last edited by
                                      #18

                                      @tomy

                                      I didn't understand the part "the preview/release candidates" for ndk!

                                      Google, like other software companies, have official releases of their software and release candidates or preview versions of upcoming software.
                                      Basically open Beta access to flush out bugs/incompatibilities or testing of new features/apis

                                      Using one of those beta versions is bound to have bugs in them, making them not a viable candidate for development, but rather a test/check if your software is still working as indented in the upcoming releases.

                                      So the question is why do you use r18b while Docs says you need to use r19c, please?

                                      When I setup qt for android 5.12.0, 18b was the latest official release, and even listed in the docu as such.

                                      Apparenlty the latest version is Pie 9 API level 28.

                                      yes, but I was talking about the oldest api level still allowed to be used in the PlayStore.

                                      My android build sdk (for any QML app for Android) is always on android-28.
                                      Bad habit?

                                      No, not necessarily, at least in my opinion. Use what works ;-)

                                      I didn't get this part either! :) What "it" do you say please?

                                      https://www.urbandictionary.com/define.php?term=if it ain't broke%2C don't fix it

                                      The question is, when do you think/feel you have to update it?

                                      when something doesn't work anymore with old apis/software.
                                      Google is going to require 64bit apks alongside normal ones very soon, as in this or the coming year.
                                      I'm sure an update on my side is being required than, at the very least.


                                      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                      Q: What's that?
                                      A: It's blue light.
                                      Q: What does it do?
                                      A: It turns blue.

                                      tomyT 1 Reply Last reply
                                      1
                                      • J.HilkJ J.Hilk

                                        @tomy

                                        I didn't understand the part "the preview/release candidates" for ndk!

                                        Google, like other software companies, have official releases of their software and release candidates or preview versions of upcoming software.
                                        Basically open Beta access to flush out bugs/incompatibilities or testing of new features/apis

                                        Using one of those beta versions is bound to have bugs in them, making them not a viable candidate for development, but rather a test/check if your software is still working as indented in the upcoming releases.

                                        So the question is why do you use r18b while Docs says you need to use r19c, please?

                                        When I setup qt for android 5.12.0, 18b was the latest official release, and even listed in the docu as such.

                                        Apparenlty the latest version is Pie 9 API level 28.

                                        yes, but I was talking about the oldest api level still allowed to be used in the PlayStore.

                                        My android build sdk (for any QML app for Android) is always on android-28.
                                        Bad habit?

                                        No, not necessarily, at least in my opinion. Use what works ;-)

                                        I didn't get this part either! :) What "it" do you say please?

                                        https://www.urbandictionary.com/define.php?term=if it ain't broke%2C don't fix it

                                        The question is, when do you think/feel you have to update it?

                                        when something doesn't work anymore with old apis/software.
                                        Google is going to require 64bit apks alongside normal ones very soon, as in this or the coming year.
                                        I'm sure an update on my side is being required than, at the very least.

                                        tomyT Offline
                                        tomyT Offline
                                        tomy
                                        wrote on last edited by tomy
                                        #19

                                        @J.Hilk

                                        The phrase was a bit old school. ;-) hhhhh

                                        Anyway, I mean the word you were referring by 'it' more. I suppsoe it was "sdk api level".

                                        I installed 5.12.3 and it's given me both MinGW 32-bit and 64-bit! Not the thing you were waiting for?

                                        To sum up, there is no version of ndk and jdk which will work for any devices running Android from 4 to 9, right? And do we just need to test?! (I don't think so!)

                                        And being up-to-date for all stuff (sdk, ndk and jdk) doesn't guarranty that your Android app works on all various devices. Right?

                                        J.HilkJ 1 Reply Last reply
                                        0
                                        • tomyT tomy

                                          @J.Hilk

                                          The phrase was a bit old school. ;-) hhhhh

                                          Anyway, I mean the word you were referring by 'it' more. I suppsoe it was "sdk api level".

                                          I installed 5.12.3 and it's given me both MinGW 32-bit and 64-bit! Not the thing you were waiting for?

                                          To sum up, there is no version of ndk and jdk which will work for any devices running Android from 4 to 9, right? And do we just need to test?! (I don't think so!)

                                          And being up-to-date for all stuff (sdk, ndk and jdk) doesn't guarranty that your Android app works on all various devices. Right?

                                          J.HilkJ Offline
                                          J.HilkJ Offline
                                          J.Hilk
                                          Moderators
                                          wrote on last edited by
                                          #20

                                          @tomy

                                          I installed 5.12.3 and it's given me both MinGW 32-bit and 64-bit! Not the thing you were waiting for?

                                          No I actually mean this one.
                                          0_1556049751277_8ae68e5b-360d-44e7-8e33-bfab0bd089f7-image.png

                                          To sum up, there is no version of ndk and jdk which will work for any devices running Android from 4 to 9, right? And do we just need to test?! (I don't think so!)

                                          Well, Qt is limited to minimal Android version of 4.4. And any APK that works on the newest api should also work backwards without (much) issues. That one google actually get's down pretty good.

                                          And being up-to-date for all stuff (sdk, ndk and jdk) doesn't guarranty that your Android app works on all various devices. Right?

                                          I would say, mostly correct ;-)
                                          nothing is guaranteed.


                                          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                          Q: What's that?
                                          A: It's blue light.
                                          Q: What does it do?
                                          A: It turns blue.

                                          tomyT 1 Reply Last reply
                                          1

                                          • Login

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