Erreur while build for android with code exit 14



  • Hello,
    Please how to fix this problem
    0_1551973946549_749dc6bb-7924-4ec0-87aa-c7c47dda5779-image.png


  • Qt Champions 2018

    @aminemaar You should post the actual error which should be above of what you posted


  • Moderators

    @aminemaar
    from experience, a shot in the dark:

    Make sure your ndk version is up to date (the latest available)



  • @J.Hilk the NDk version is up to date



  • @aminemaar

    Do you have a device attached and you try to deploy to the device?
    The error message looks familiar to me besides the French language.

    IIRC it popped up in my case when I used Ctrl+B or rebuild all, but did not intend to start the App on my device through creator. It threw me off a couple of times because of this error messsage. However, I simply tried to start the App on the device through creator with Ctrl+R it worked without error message.



  • this is all output of the error
    i want to run the app on an emulator

    Exception in thread "main" java.net.ConnectException: Connection timed out: connect
    	at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    	at java.net.Socket.connect(Socket.java:589)
    	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:666)
    	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
    	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
    	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
    	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
    	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
    	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
    	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
    	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
    	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:263)
    	at org.gradle.wrapper.Download.downloadInternal(Download.java:66)
    	at org.gradle.wrapper.Download.download(Download.java:51)
    	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)
    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
    Building the android package failed!
      -- For more information, run this command with --verbose.
    11:49:49: Le processus "C:\Qt\Qt5.12.1\5.12.1\android_armv7\bin\androiddeployqt.exe" s'est terminé avec le code 14.
    Erreur lors de la compilation/déploiement du projet DiagBox (kit : Android for armeabi-v7a (Clang Qt 5.12.1 for Android ARMv7))
    The kit Android for armeabi-v7a (Clang Qt 5.12.1 for Android ARMv7) has configuration issues which might be the root cause for this problem.
    When executing step "Build Android APK"
    

  • Moderators

    @aminemaar seems like the androidDeployqt tool wants to download needed files and it can not.

    Check your internet connection, proxies and anti virus software



  • @J.Hilk Thanks i will try to disable proxy on my computer.



  • @aminemaar
    Hi

    HOW YOU SOLVE


Log in to reply
 

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