Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Android deployment with 5.2.0-beta1 fails with code 14
Forum Updated to NodeBB v4.3 + New Features

Android deployment with 5.2.0-beta1 fails with code 14

Scheduled Pinned Locked Moved Installation and Deployment
18 Posts 8 Posters 14.9k 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.
  • Z Offline
    Z Offline
    zing0000
    wrote on last edited by
    #5

    Update 3:

    I tried running androiddeployqt from the command line. I have done clean rebuild after deleting the mybuild/android folder. Result below.

    Am I the only one getting code 14?

    @
    D:\UncutDev\Qt\QtBuild\morph>C:\Qt\Qt5.2.0\5.2.0-beta1\android_armv7\bin\androiddeployqt --output "D:\UncutDev\Qt\build-morphSolution-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Debug"
    Cannot read from input file: android-libmorph.so-deployment-settings.json
    @

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kqt-mr-nv6
      wrote on last edited by
      #6

      I have just tried beta 5.2 release
      in both windows and linux I am getting the same error
      (building for android 2.3.3)

      @
      BUILD FAILED
      /home/user/Android/android-sdk-linux/tools/ant/build.xml:650: The following error occurred while executing this line:
      /home/user/Android/android-sdk-linux/tools/ant/build.xml:691: null returned: 1

      Total time: 2 seconds
      Generating Android Package
      Input file: /home/user/QtBinJ13/build-untitled-Android_for_armeabi_v7a_GCC_4_7_Qt_5_2_0-Release/android-libuntitled.so-deployment-settings.json
      Output directory: /home/user/QtBinJ13/build-untitled-Android_for_armeabi_v7a_GCC_4_7_Qt_5_2_0-Release/android
      Application binary: /home/user/QtBinJ13/build-untitled-Android_for_armeabi_v7a_GCC_4_7_Qt_5_2_0-Release/libuntitled.so
      Android build platform: android-10
      Install to device: SH28EVN04506
      [subant] No sub-builds to iterate on
      Building the android package failed!
      -- For more information, run this command with --verbose.
      12:30:44: The process "/home/user/Qt5.2.0/5.2.0-beta1/android_armv7/bin/androiddeployqt" exited with code 14.
      Error while building/deploying project untitled (kit: Android for armeabi-v7a (GCC 4.7, Qt 5.2.0))-
      When executing step 'Deploy to Android device'
      @

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MontezooM
        wrote on last edited by
        #7

        To receive more information from androiddeployqt try to pass --verbose param (when run from command line). Maybe this helps to define issue.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          savantj
          wrote on last edited by
          #8

          I solved the same issue installing the latest jdk (release 7 u45, before i had the jre6 :) )
          The application (debug) is huuuge but it works :)

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kqt-mr-nv6
            wrote on last edited by
            #9

            I have tried with jdk 7, u45
            no difference
            problem remains

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              zing0000
              wrote on last edited by
              #10

              Phew! it works in Qt5.2.0 RC1

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kqt-mr-nv6
                wrote on last edited by
                #11

                I still get the same error wit !t5.2.0 RC1

                @Building the android package failed!
                -- For more information, run this command with --verbose.
                11:24:21: The process "/home/user/Qt5.2.0/5.2.0-rc1/android_armv5/bin/androiddeployqt" exited with code 14.
                Error while building/deploying project TestC (kit: Android for armeabi (GCC 4.8, Qt 5.2.0))
                When executing step 'Deploy to Android device'
                @

                any help ?

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kqt-mr-nv6
                  wrote on last edited by
                  #12

                  I have Installed API-16 android sdk
                  now its working

                  1 Reply Last reply
                  0
                  • Arty.McLabinA Offline
                    Arty.McLabinA Offline
                    Arty.McLabin
                    wrote on last edited by
                    #13

                    I'm having the same problem while trying to deploy Maroon in Trouble example to a virtual android machine, it does employ to my real galaxyNote2 via USB tho (with a screen size bug, but does)

                    Static linking is cool. Really.

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      Pablitogrillo
                      wrote on last edited by
                      #14

                      I have the same error in qt 5.3.1 when I compile my app or some example:
                      BUILD FAILED
                      /home/pablo/Descargas/android-sdk-linux2/tools/ant/build.xml:653: The following error occurred while executing this line:
                      /home/pablo/Descargas/android-sdk-linux2/tools/ant/build.xml:659: Execute failed: java.io.IOException: Cannot run program "/home/pablo/Descargas/android-sdk-linux2/build-tools/19.1.0/aidl": error=2, No such file or directory
                      at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)

                      ......

                      Building the android package failed!
                      -- For more information, run this command with --verbose.
                      19:34:02: The process "/home/pablo/Qt5.3.1/5.3/android_armv7/bin/androiddeployqt" exited with code 14.
                      Error while building/deploying project qtapp (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.3.1))
                      When executing step 'Deploy to Android device'

                      19:34:02: Elapsed time: 00:04.

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        Pablitogrillo
                        wrote on last edited by
                        #15

                        Can someone help me ?

                        1 Reply Last reply
                        0
                        • R Offline
                          R Offline
                          rwxc
                          wrote on last edited by
                          #16

                          Hey, I too get that error, doesn't anyone knowledgeable read this? Help us out guys! I arrived here by Googling for an answer. There is another thread here: qt-project.org/forums/viewthread/34021 but I still get the error.

                          It deploys fine when you create a project "as is" with default settings but the moment I create "AndroidManifest.xml" from Projects->Build->Run->Deploy configurations, it no longer deploys and I get the error.

                          This is a big deal! Please assist.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #17

                            Hi,

                            This forum is community driven so you might be hitting the case that nobody here got hit by that problem. However it's not the end of it. You still have the necessitas google group and the necessitas IRC channel where you can reach the guys that are working on the android port. There's also the interest mailing list where you can find Qt's developers/maintainers.

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • R Offline
                              R Offline
                              rwxc
                              wrote on last edited by
                              #18

                              Ok, I've resolved the issue.

                              In my AndroidManifest.xml file I was double-declaring the android:screenOrientation tag. I had android:screenOrientation="unspecified" and on top of that I also had android:screenOrientation="landscape".

                              I successfully reproduced and fixed the error by doubling and removing the android:screenOrientation tag intentionally. I am using Qt 5.3.1.

                              So to other people experiencing the error, double check your XML file.

                              Make sure you clean your build directory. I just delete the whole directory and it just gets recreated.

                              I'd be interested to know if other people did get it fixed and how.

                              Cheers

                              1 Reply Last reply
                              0

                              • Login

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