【问题标题】:error while generating apk in android studio after gradle build is successfullgradle构建成功后在android studio中生成apk时出错
【发布时间】:2020-01-16 08:21:37
【问题描述】:

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

【问题讨论】:

  • 是的..点击链接说什么?
  • 该页面未加载,出现错误 404
  • 它对我来说加载得很好..这里developer.android.com/studio/build/…查看答案并根据需要修改代码。这就是文档所说的解决方案

标签: android firebase android-studio apk


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2017-05-10
    • 2016-10-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-25
    • 2015-10-06
    • 1970-01-01
    • 2018-09-11
    相关资源
    最近更新 更多