Cannot resolve symbol 'data'
时间: 2023-10-28 11:55:45 浏览: 278
回答: 当遇到"Cannot resolve symbol 'data'"的错误时,这可能是因为IDE或构建工具未正确配置Lombok导致的。可以尝试以下解决方案来解决该问题。首先,检查是否已正确配置Lombok。其次,检查项目结构,确保没有同名的项目混杂在一起。如果上述方法都无法解决问题,还可以尝试在IDE中启用项目的Annotation Processor。在IntelliJ IDEA中,可以通过转到"Settings > Build, Execution, Deployment > Compiler > Annotation Processors",并确保"Enable annotation processing"选项已经被勾选来启用Annotation Processor。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [Cannot resolve symbol ‘lombok](https://blog.csdn.net/qq_58035032/article/details/130543502)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [Scala - Idea 项目报错 Cannot resolve symbol XXX](https://blog.csdn.net/BIT_666/article/details/128953726)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文