gpt4 book ai didi

java - 现在必须显式声明注释处理器

转载 作者:IT老高 更新时间:2023-10-28 20:21:31 24 4
gpt4 key购买 nike

Error:Execution failed for task ':laMusique2May2016:javaPreCompileRelease'.
> 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.
- auto-value-1.1.jar (com.google.auto.value:auto-value:1.1)
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.

我看到了这个问题,但问题是 auto-value-1.1.jar 不在我的 gradle 文件中

最佳答案

即使我遇到了同样的问题,最后我通过将其添加到应用级 gradle 文件解决了我的问题

android{
....
defaultConfig{
....
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath true
}
}
}
buildTypes {
...
}

希望它能解决某人的问题

关于java - 现在必须显式声明注释处理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46963498/

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