龙目岛需要注释处理 [英] Lombok Requires Annotation Processing

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

问题描述

我正在使用Android Studio 2.2 Preview 7,Lombok插件突然开始说: Annotation processing seems to be disabled for the project 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.

要解决此问题,请转到

  • File->Other Settings->Default Settings
  • 展开Build, Execution, Deployment
  • 展开Compiler
  • Annotation Processors中选中Enable annotation processing
  • 您可能需要重新打开项目才能使设置生效.
  • 享受
  • File->Other Settings->Default Settings
  • Expand Build, Execution, Deployment
  • Expand Compiler
  • In Annotation Processors check Enable annotation processing
  • You may need to re-open the project to get the settings to take effect.
  • Enjoy

完整参考-带有相应设置屏幕的屏幕截图:

For complete reference - screenshot with appropriate settings screen:

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

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