Home > Mobile >  Qt compiler apk, build errors, how to solve?
Qt compiler apk, build errors, how to solve?

Time:10-12

Dear bosses, Qt compiler apk, build errors, how to solve?

FAILURE: the Build failed with an exception.

* What went wrong:
A problem occurred you root project 'android - build.
Could not resolve all artifacts for the configuration ': the classpath'.
Could not resolve com. Android. View the build: gradle: 3.5.0.
Required by:
Project:
Could not resolve com. Android. View the build: gradle: 3.5.0.
Could not get the resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'.
Could not GET the 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'.
Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused: Connect
Could not resolve com. Android. View the build: gradle: 3.5.0.
Could not get the resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'.
Could not GET the 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.0/gradle-3.5.0.pom'.
Connect to 127.0.0.1:80 [/127.0.0.1] failed: Connection refused: Connect

* Try:
Run with -- stacktrace option to get the stack trace. Run with -- the info or -- debug option to get more the log output. The Run with -- scan to get full insights.

* Get more help at https://help.gradle.org

The BUILD FAILED in 40 s
- Skipping C:/Qt/Qt5.14.2 5.14.2/android/plugins/iconengines libplugins_iconengines_qsvgicon_armeabi - v7a. So, It has unmet dependencies: lib/libQt5Svg_armeabi - v7a. So.
- Skipping C:/Qt/Qt5.14.2 5.14.2/android/plugins/imageformats libplugins_imageformats_qsvg_armeabi - v7a. So, It has unmet dependencies: lib/libQt5Svg_armeabi - v7a. So.
Skipping createRCC
Building the android package failed!
- For more information, run this command with the -- verbose.
18:45:31: process "C: \ Qt \ Qt5.14.2\5.14.2 \ android \ bin \ androiddeployqt exe" quit, exit code 14,
Error while building/deploying project untitled (kit: Android Qt 5.14.2 Android Clang Multi - Abi)
The When executing step "Build Android APK"

CodePudding user response:

Download resources when you set even not agent (127.0.0.1:80)
  •  Tags:  
  • Qt
  • Related