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. "androiddeployqt.exe" exited with code 4
QtWS25 Last Chance

"androiddeployqt.exe" exited with code 4

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 2 Posters 2.1k 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.
  • BlasterB Offline
    BlasterB Offline
    Blaster
    wrote on last edited by
    #1

    Greetings. I just updated to qt 5.11.2, but I have problems compiling an Android application. I have SDK 26.1.1, NDK 10.4.0 (r10e) and JDK 1.9.0 and I still get the error:

    qmlimportscanner: No such file or directory: "D:/DROP"
    Invalid json output from qmlimportscanner.
    14:34:21: The process "C:\Qt\Qt5.11.2\5.11.2\android_armv7\bin\androiddeployqt.exe" exited with code 4.
    Error while building/deploying project RegCharge2 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.2 for Android ARMv7))
    When executing step "Build Android APK"
    

    I do not quite understand what happens. Does anyone have an idea?

    raven-worxR 1 Reply Last reply
    0
    • BlasterB Blaster

      Greetings. I just updated to qt 5.11.2, but I have problems compiling an Android application. I have SDK 26.1.1, NDK 10.4.0 (r10e) and JDK 1.9.0 and I still get the error:

      qmlimportscanner: No such file or directory: "D:/DROP"
      Invalid json output from qmlimportscanner.
      14:34:21: The process "C:\Qt\Qt5.11.2\5.11.2\android_armv7\bin\androiddeployqt.exe" exited with code 4.
      Error while building/deploying project RegCharge2 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.2 for Android ARMv7))
      When executing step "Build Android APK"
      

      I do not quite understand what happens. Does anyone have an idea?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Blaster
      stupid question: does D:/DROP exist?
      Where are you using DROP in your project?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      BlasterB 1 Reply Last reply
      1
      • raven-worxR raven-worx

        @Blaster
        stupid question: does D:/DROP exist?
        Where are you using DROP in your project?

        BlasterB Offline
        BlasterB Offline
        Blaster
        wrote on last edited by
        #3

        @raven-worx D:/DROP is part of the complete path to the project that is D:/DROP BOX/Qt Projects. Do I have to put it without space? I guess not because in previous versions of qt that was the same directory that used

        raven-worxR 1 Reply Last reply
        0
        • BlasterB Blaster

          @raven-worx D:/DROP is part of the complete path to the project that is D:/DROP BOX/Qt Projects. Do I have to put it without space? I guess not because in previous versions of qt that was the same directory that used

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Blaster said in "androiddeployqt.exe" exited with code 4:

          Do I have to put it without space?

          this is always a good advice.

          It's not all about Qt itself, but also about QtCreator which executes the commands. So there might have been some changes too.
          But anyway, when developing for Android you should always keep the path as short as possible and clean from spaces.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          BlasterB 2 Replies Last reply
          0
          • raven-worxR raven-worx

            @Blaster said in "androiddeployqt.exe" exited with code 4:

            Do I have to put it without space?

            this is always a good advice.

            It's not all about Qt itself, but also about QtCreator which executes the commands. So there might have been some changes too.
            But anyway, when developing for Android you should always keep the path as short as possible and clean from spaces.

            BlasterB Offline
            BlasterB Offline
            Blaster
            wrote on last edited by
            #5

            @raven-worx OK, I will delete the spaces.

            1 Reply Last reply
            0
            • raven-worxR raven-worx

              @Blaster said in "androiddeployqt.exe" exited with code 4:

              Do I have to put it without space?

              this is always a good advice.

              It's not all about Qt itself, but also about QtCreator which executes the commands. So there might have been some changes too.
              But anyway, when developing for Android you should always keep the path as short as possible and clean from spaces.

              BlasterB Offline
              BlasterB Offline
              Blaster
              wrote on last edited by
              #6

              @raven-worx Well, friend, now there is another problem.

              Exception in thread "main" java.net.UnknownHostException: services.gradle.org
              at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
              	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
              	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
              	at java.net.Socket.connect(Socket.java:591)
              	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:649)
              	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
              	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
              	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
              	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
              	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
              	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
              	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
              	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)
              	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)
              	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
              	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)
              	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
              	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
              	at org.gradle.wrapper.Download.downloadInternal(Download.java:60)
              	at org.gradle.wrapper.Download.download(Download.java:45)
              	at org.gradle.wrapper.Install$1.call(Install.java:62)
              	at org.gradle.wrapper.Install$1.call(Install.java:48)
              	at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
              	at org.gradle.wrapper.Install.createDist(Install.java:48)
              	at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
              	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
              Building the android package failed!
                -- For more information, run this command with --verbose.
              08:17:26: The process "C:\Qt\Qt5.11.2\5.11.2\android_armv7\bin\androiddeployqt.exe" exited with code 14.
              Error while building/deploying project samegame (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.2 for Android ARMv7))
              When executing step "Build Android APK"
              
              raven-worxR 1 Reply Last reply
              0
              • BlasterB Blaster

                @raven-worx Well, friend, now there is another problem.

                Exception in thread "main" java.net.UnknownHostException: services.gradle.org
                at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
                	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
                	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
                	at java.net.Socket.connect(Socket.java:591)
                	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:649)
                	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:174)
                	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
                	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
                	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
                	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
                	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
                	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
                	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)
                	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)
                	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
                	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)
                	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
                	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
                	at org.gradle.wrapper.Download.downloadInternal(Download.java:60)
                	at org.gradle.wrapper.Download.download(Download.java:45)
                	at org.gradle.wrapper.Install$1.call(Install.java:62)
                	at org.gradle.wrapper.Install$1.call(Install.java:48)
                	at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
                	at org.gradle.wrapper.Install.createDist(Install.java:48)
                	at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
                	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
                Building the android package failed!
                  -- For more information, run this command with --verbose.
                08:17:26: The process "C:\Qt\Qt5.11.2\5.11.2\android_armv7\bin\androiddeployqt.exe" exited with code 14.
                Error while building/deploying project samegame (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.11.2 for Android ARMv7))
                When executing step "Build Android APK"
                
                raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                @Blaster
                well "friend"... did you look up the error on the internet?!
                It will show up pretty fast that there is an issue in your machine/network and that services.gradle.org cannot be resolved

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                BlasterB 1 Reply Last reply
                0
                • raven-worxR raven-worx

                  @Blaster
                  well "friend"... did you look up the error on the internet?!
                  It will show up pretty fast that there is an issue in your machine/network and that services.gradle.org cannot be resolved

                  BlasterB Offline
                  BlasterB Offline
                  Blaster
                  wrote on last edited by
                  #8

                  @raven-worx I do not have internet access, but I do not think it's necessary to compile applications

                  raven-worxR 1 Reply Last reply
                  0
                  • BlasterB Blaster

                    @raven-worx I do not have internet access, but I do not think it's necessary to compile applications

                    raven-worxR Offline
                    raven-worxR Offline
                    raven-worx
                    Moderators
                    wrote on last edited by
                    #9

                    @Blaster said in "androiddeployqt.exe" exited with code 4:

                    @raven-worx I do not have internet access, but I do not think it's necessary to compile applications

                    no?
                    so from where do your dependencies (this includes gradle libs) come from then?

                    --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                    If you have a question please use the forum so others can benefit from the solution in the future

                    BlasterB 1 Reply Last reply
                    0
                    • raven-worxR raven-worx

                      @Blaster said in "androiddeployqt.exe" exited with code 4:

                      @raven-worx I do not have internet access, but I do not think it's necessary to compile applications

                      no?
                      so from where do your dependencies (this includes gradle libs) come from then?

                      BlasterB Offline
                      BlasterB Offline
                      Blaster
                      wrote on last edited by
                      #10

                      @raven-worx I thought they were all in the JDK installation

                      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