gpt4 book ai didi

java - 任务 ':app:javaCompileDebug' 执行失败

转载 作者:太空宇宙 更新时间:2023-11-04 10:58:37 24 4
gpt4 key购买 nike

我最近回到了 android studio 中的一个应用程序,该应用程序在 Android Studio 2.3.3 上运行良好,但是今天早上,当系统提示我更新到 Studio 3.0 时,我的模块无法运行。我尝试过清理和重建,但是当我尝试在我的设备上运行它时,构建失败并给出以下错误:

Error:Execution failed for task ':app:javaPreCompileDebug'.
Annotation processors must be explicitly declared now. The following
dependencies on the compile classpath are found to contain annotation
processor. Please add them to the annotationProcessor configuration.
- androidannotations-4.0.0.jar (org.androidannotations:androidannotations:4.0.0)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.

我对 Android 注释一无所知,这就是我在这里询问的原因。

谢谢!

最佳答案

经过一些研究,我找到了 this GitHub issueThis picture solved my problem!

关于java - 任务 ':app:javaCompileDebug' 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47134879/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com