• 3590阅读
  • 2回复

请问Qt for android问题 [复制链接]

上一主题 下一主题
离线nikonice
 

只看楼主 倒序阅读 楼主  发表于: 2018-05-16
请问Qt for android 5.9.4以后构建设置里面为什么没有Use/Gradle这个选项了?以前把这个选项去掉,编译时候就不会自动下载gradle了
现在没有这个勾选项,每次都让下gradle,我这里不具备下载gradle条件,怎么设置能不让下载gradle?
困扰好几天了



离线nikonice

只看该作者 1楼 发表于: 2018-05-16
请问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.
离线白马

只看该作者 2楼 发表于: 2018-07-09
楼主 问题解决了没 遇到同样问题了
快速回复
限100 字节
 
上一个 下一个