帖子
帖子
用户
博客
课程
显示全部楼层
22
帖子
0
勋章
145
Y币

[云开发] annotationProcessor 依赖无法编译

[复制链接]
发表于 2022-1-20 20:45:37
本帖最后由 zhidehuiguo 于 2022-1-20 20:47 编辑

如果自定义模块中添加 annotationProcessor 依赖,则编译自定义模块时出现如下错误:
  1. * What went wrong:
  2. Execution failed for task ':app:javaPreCompileRelease'.
  3. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
  4.    > 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.
  5.        - xvarsIdCard-api.jar (xvarsIdCard.aar)
  6.      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.
  7.      See https://developer**.**/r/tools/annotation-processor-error-message.html for more details.
复制代码


请问这种如何编译
这个我和开发反馈一下
5
帖子
0
勋章
47
Y币
大哥,你这个问题是怎么解决的呢?我也遇到了。
您需要登录后才可以回帖 登录

本版积分规则