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