Issue in building Qt Android app using Gradle



  • I have selected "Use Gradle" from project config menu.
    And while building im getting the following error...
    Also somebody please provide the steps to build Android Library using Gradle on QtCreator.
    I am using a proxy based Internet connection and Ubuntu 14.04 operating system. Please help.

    Downloading https://services.gradle.org/distributions/gradle-2.2.1-all.zip
    
    Exception in thread "main" java.lang.RuntimeException: java.net.ConnectException: Connection timed out
    	at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
    	at org.gradle.wrapper.Install.createDist(Install.java:47)
    	at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
    	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
    Caused by: java.net.ConnectException: Connection timed out
    	at java.net.PlainSocketImpl.socketConnect(Native Method)
    	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    	at java.net.Socket.connect(Socket.java:579)
    	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
    	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
    	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.plainConnect(HttpURLConnection.java:933)
    	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
    	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    	at org.gradle.wrapper.Download.downloadInternal(Download.java:59)
    	at org.gradle.wrapper.Download.download(Download.java:45)
    	at org.gradle.wrapper.Install$1.call(Install.java:60)
    	at org.gradle.wrapper.Install$1.call(Install.java:47)
    	at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
    	... 3 more
    Building the android package failed!
      -- For more information, run this command with --verbose.
    

Log in to reply
 

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