AS使用lombok注解报错:Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor.
On 报错 to The 注解 be found as
2023-09-27 14:23:18 时间
Rebuild时报错信息如下所示:
Error:Execution failed for task ':app:javaPreCompileDebug'.
> 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.
- lombok-1.16.20.jar (org.projectlombok:lombok:1.16.20)
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.
在app的build中 android { ... defaultConfig { ... //添加如下配置就OK了 javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } } } ... }
相关文章
- Azure 删除VHD时报错:There is currently a lease on the blob and no lease ID was specified in the request
- 报错:Failed on local exception: Host Details : local host is: "master/192.168.52.26"; dest
- ERROR: Timeout on the Spark engine during the broadcast join
- UE4 Run On Server与Run on owning client
- jstl报错:Property 'name' not found on type java.lang.String
- MySQL 联级删除(on delete cascade)应用
- The last access date is not changed even after reading the file on Windows 7
- chkconfig --add 服务名 报错“error reading information on service httpd: No such file or directory”
- SPOJ QTREE Query on a tree (树链剖分+线段树)
- elment-ui 版本问题 Avoid mutating a prop directly since the value will be overwritten whenever the parent component ... property based on the prop's value. Prop being mutated: "placement"
- The Impact of Disks on RocksDB State Backend in Flink: A Case Study
- Deploy custom service on non hadoop node with Apache Ambari
- 安装centos8系统 报错:the following problem occurred on line 31 of the kickstart file
- mariadb启动报错:[ERROR] Can't start server : Bind on unix socket: Permission denied
- Vue报错笔记(1)vue.esm.js?efeb:628 [Vue warn]: Property or method “handleClick“ is not defined on the...
- SQLServer 2012 Always on配置全过程
- jsp头部报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
- Redis_MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk问题解决
- 浅析mysql报错:Error writing file '/tmp/MY4QWdUa' (Errcode: 28 - No space left on device) 磁盘空间不足的问题和解决思路
- Vue3实践指南:Prettier代码格式化工具、格式化Vue出现单引号变双引号及分号问题、useRouter执行后undefined问题、Property 'value' does not exist on type 'HTMLElement'、error Unexpected mutation of “xxxx“ prop
- Vue3+ts+eslint报错记录及解决:warning Unexpected any. Specify a different type、warning Delete `·` 、Missing return type on function、Require statement not part of import statement、Unnecessary escape character
- NoC(Network on Chip)基础 (3):网络拓扑结构 Butterfly、Torus、Mesh
- [已解决]报错:have mixed types. Specify dtype option on import or set low_memory=False