Results 1 to 2 of 2

Thread: Error while compiling Qt 5.9.0 with android

  1. #1
    Join Date
    Oct 2017
    Posts
    3
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Windows Android

    Post Error while compiling Qt 5.9.0 with android

    Hello All.

    while compiling Qt with android i am facing some issue. please help me to solve this issue

    first issue :

    Generating Android Package

    Input file: C:/Qt/Qt5.9.0/Examples/Qt-5.9/quick/demos/calqlatr/android-libcalqlatr.so-deployment-settings.json Output directory: C:/Qt/Qt5.9.0/Examples/Qt-5.9/quick/demos/calqlatr/android-build/ Application binary: C:/Qt/Qt5.9.0/Examples/Qt-5.9/quick/demos/calqlatr/libcalqlatr.so Android build platform: android-26 Install to device: No

    Downloading https://services.gradle.org/distribu...le-3.4-bin.zip Exception in thread "main" java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method)

    i solved the above issue by downloading the gradle-3.4-bin.zip and gave local path in gradle-wrapper.properties.

    then this issue solved.

    after that i got one more issue like :

    Generating Android Package Input file: C:/Qt/Qt5.9.0/Examples/Qt-5.9/quick/demos/calqlatr/android-libcalqlatr.so-deployment-settings.json Output directory: C:/Qt/Qt5.9.0/Examples/Qt-5.9/quick/demos/calqlatr/android-build/ Application binary: C:/Qt/Qt5.9.0/Examples/Qt-5.9/quick/demos/calqlatr/libcalqlatr.so Android build platform: android-26 Install to device: No

    FAILURE: Build failed with an exception.

    What went wrong: A problem occurred configuring root project 'android-build'.
    Could not resolve all dependencies for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:2.2.3. Required by: project : Could not resolve com.android.tools.build:gradle:2.2.3. Could not get resource 'https:/ /jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom'. Could not GET 'https:/ /jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom'. Connect to jcenter.bintray.com:443 [jcenter.bintray.com/75.126.118.188] failed: Connection timed out: connect
    Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    BUILD FAILED

    Total time: 26.017 secs Building the android package failed! -- For more information, run this command with --verbose. 15:58:56: The process "C:\Qt\Qt5.9.0\5.9\android_armv7\bin\androiddeploy qt.exe" exited with code 14. Error while building/deploying project calqlatr (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.0 for Android armv7)) When executing step "Build Android APK"

    15:58:56: Elapsed time: 00:57.

    i am using Qt5.9.0

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    503
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Error while compiling Qt 5.9.0 with android

    Hi, I have no experience with Android, but this
    Could not resolve com.android.tools.build:gradle:2.2.3
    looks like a missing dependency to me, whatever "gradle" may be...

    Ginsengelf

Similar Threads

  1. Replies: 14
    Last Post: 2nd August 2015, 23:07
  2. qt for android 5.5 some error
    By xiaoxiangyu in forum Qt Programming
    Replies: 3
    Last Post: 15th July 2015, 23:15
  3. Qt 5.1 for Android error
    By Baso in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 27th July 2013, 11:47
  4. Replies: 3
    Last Post: 17th July 2012, 21:58
  5. Replies: 1
    Last Post: 25th October 2008, 20:18

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.