nikonice |
2018-05-16 11:14 |
请问Qt for android 5.9.4以后构建设置里面为什么没有Use/Gradle这个选项了?以前把这个选项去掉,编译时候就不会自动下载gradle了 现在没有这个勾选项,每次都让下gradle,我这里不具备下载gradle条件,怎么设置能不让下载gradle? 困扰好几天了 [attachment=18946]
手动下载了gradle包,编译时候解压此包,出现如下错误
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: 25.764 secs 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 Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Material.impl Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Universal.impl Building the android package failed! -- For more information, run this command with --verbose. 11:20:21: 进程"C:\Qt\Qt5.9.4\5.9.4\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。 Error while building/deploying project GstDebugWizard (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.9.4 for Android armv7)) When executing step "Build Android APK" 11:20:21: Elapsed time: 01:36. |
|