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

gradle构建成功后在android studio中生成apk时出错,android,firebase,android-studio,apk,Android,Firebase,Android Studio,Apk,当生成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.

当生成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.

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

annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
annotationProcessor 'com.google.auto.service:auto-service:1.0-rc2'

赞成。。按照链接上的说明进行操作?该页面没有加载错误404,对我来说加载很好。在这里查看答案并根据修改代码。这就是文档所说的解决方案