当前位置:   article > 正文

解决QT生成安卓安装包时出现Could not determine the dependencies of task ‘:compileDebugJavaWithJavac‘.问题

解决QT生成安卓安装包时出现Could not determine the dependencies of task ‘:compileDebugJavaWithJavac‘.问题

解决QT生成安卓安装包时出现Could not determine the dependencies of task ‘:compileDebugJavaWithJavac’.问题

错误提示

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':compileDebugJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;28.0.3 Android SDK Build-Tools 28.0.3
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
  
  Using Android SDK: C:\Users\Ch\AppData\Local\Android\sdk

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

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

BUILD FAILED in 5s
Building the android package failed!
  -- For more information, run this command with --verbose.
23:33:32: 进程"D:\iFiles\QT\5.14.2\android\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project QtBT (kit: Android for armeabi-v7a,arm64-v8a,x86,x86_64 (Clang Qt 5.14.2 for Android))
When executing step "Build Android APK"
23:33:32: Elapsed time: 04:23.
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23

右键选择Manage Kits
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
选择下载提示里少的SDK即可

18:57:38: 进程"D:\iFiles\Qt\5.14.2\android\bin\androiddeployqt.exe"正常退出。
18:57:38: Elapsed time: 00:07.
  • 1
  • 2

搞了两三天,按网上的方法试了好几次,只有这个是有效的

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/310986
推荐阅读
相关标签
  

闽ICP备14008679号