|
[云开发]
annotationProcessor 依赖无法编译
[复制链接]
本帖最后由 zhidehuiguo 于 2022-1-20 20:47 编辑
如果自定义模块中添加 annotationProcessor 依赖,则编译自定义模块时出现如下错误:
- * What went wrong:
- Execution failed for task ':app:javaPreCompileRelease'.
- > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
- > 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.
- - xvarsIdCard-api.jar (xvarsIdCard.aar)
- 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**.**/r/tools/annotation-processor-error-message.html for more details.
复制代码
请问这种如何编译 |
|