gradle构建成功后在android studio中生成apk时出错

问题描述 投票:0回答:1

在生成apk时出现此错误,我已经按照建议也尝试了对pugins的升级

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.
  - icepick-processor-3.2.0.jar (frankiesardo:icepick-processor:3.2.0)
  - auto-service-1.0-rc2.jar (com.google.auto.service:auto-service:1.0-rc2)
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 firebase android-studio apk
1个回答
0
投票

您应该在gradle中显式添加注释处理器。将以下内容放在gradle依赖项中可以解决此问题:

annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
annotationProcessor 'com.google.auto.service:auto-service:1.0-rc2'
© www.soinside.com 2019 - 2024. All rights reserved.