idea2020.2 提示Cannot resolve method ‘xxxx‘ in ‘xxxxx‘
分类:
文章
•
2024-04-08 14:27:04
环境:Win10 + idea2020.2.3
问题:idea 在源文件中提示 Cannot resolve method,但是项目可以编译运行;
![idea2020.2 提示Cannot resolve method ‘xxxx‘ in ‘xxxxx‘ idea2020.2 提示Cannot resolve method ‘xxxx‘ in ‘xxxxx‘](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzk4NS84OTdkZTZjMzAzY2JkZWY3NGQ4NWQyYWY1ODg4M2JlMS5wbmc=)
解决方法:最后发现的原因是没安装lombok插件导致的,所以安装一下,并允许就行了
1、安装lombok插件,点击菜单栏中的【File】->【Setting】->【Plugins】-> 输入 lombok ,【install】-> 【Ok】
![idea2020.2 提示Cannot resolve method ‘xxxx‘ in ‘xxxxx‘ idea2020.2 提示Cannot resolve method ‘xxxx‘ in ‘xxxxx‘](/default/index/img?u=aHR0cHM6Ly9waWFuc2hlbi5jb20vaW1hZ2VzLzUxMS83NmMwYTE2MTAzNjIyMTcxZTMxNzNlYmRhMWQxNzM1Zi5wbmc=)