Qt Android应用程序开发错误>>任务':compileDebugJavaWithJavac'的执行失败

时间:2019-02-24 14:59:42

标签: android qt

我尝试使用Qt为android构建应用程序,但它给了我下一个错误

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> java.lang.reflect.UndeclaredThrowableException

* Try:
16 actionable tasks: 16 executed
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 1m 15s
Building the android package failed!
  -- For more information, run this command with --verbose.
16:37:37: The process "/home/michael/Applications/Qt/5.12.1/android_armv7/bin/androiddeployqt" exited with code 14.
Error while building/deploying project calendarwidget (kit: Android for armeabi-v7a (Clang Qt 5.12.1 for Android ARMv7))
When executing step "Build Android APK"`

这只是一个简单的日历应用程序

1 个答案:

答案 0 :(得分:0)

implementation 'com.android.support:appcompat-v7:27.1.1'文件的“依赖性”部分下添加build.gradle(根据需要选择版本)。