AndroidFine Error:Annotation processors must be explicitly declared now.

曾经终败给现在 2023-06-01 03:26 108阅读 0赞

环境

  1. Android Studio 3.0 Gradle 3.0.0 gradle 4.1

Error

  1. Error:Execution failed for task ':app:javaPreCompileAnzhiDebug'. > 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. - butterknife-7.0.1.jar (com.jakewharton:butterknife:7.0.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.

解决

  1. javaCompileOptions {
  2. // 显式声明支持注解 annotationProcessorOptions { includeCompileClasspath false } }

转载于:https://www.cnblogs.com/Jeely/p/11315090.html

发表评论

表情:
评论列表 (有 0 条评论,108人围观)

还没有评论,来说两句吧...

相关阅读