Lombok 需要注解处理 [英] Lombok Requires Annotation Processing

查看:31
本文介绍了Lombok 需要注解处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Android Studio 2.2 Preview 7,Lombok 插件突然开始说:似乎对项目 X 禁用了注释处理,并提供了一个设置链接.

I'm using Android Studio 2.2 Preview 7, and the Lombok plugin suddenly started saying: Annotation processing seems to be disabled for the project X, and providing a link to settings.

点击通知并没有把我带到正确的地方.

Clicking on the notification does not take me to the right place.

有什么办法可以解决这个问题?

What is the fix for this?

推荐答案

点击通知打开的设置是Per Project设置,在这种情况下这些不是你需要的.

The Settings opened by clicking the notification are the Per Project settings, and those are not what you need in this case.

要解决此问题,请转到

  • 文件->其他设置->默认设置
  • 展开构建、执行、部署
  • 展开编译器
  • Annotation Processors中勾选Enable annotation processing
  • 您可能需要重新打开项目才能使设置生效.
  • 享受

完整参考 - 带有适当设置屏幕的屏幕截图:

For complete reference - screenshot with appropriate settings screen:

这篇关于Lombok 需要注解处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆