Lombok Requires Annotation Processing
With the newer gradle versions, it is enough to type these lines into the app's build.gradle's dependencies block:`
compile "org.projectlombok:lombok:1.16.16"
annotationProcessor "org.projectlombok:lombok:1.16.16"
Sync the project with the gradle and it will work.
The Settings opened by clicking the notification are the Per Project
settings, and those are not what you need in this case.
To fix this, go to
File->Other Settings->Default Settings
- Expand
Build, Execution, Deployment
- Expand
Compiler
- In
Annotation Processors
checkEnable 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:
First, I don't think removing your project from the welcome screen can have any effect. Just think about it, removing your project from "recent projects" on that screen does not re-create it, how could changing Default settings have any effect on an existing project?
To enable annotation processing in an existing project you don't need to delete anything. Go to YourAwesomeProject/.idea/compiler.xml
and make sure you have value "true" in following attribute: /project/annotationProcessing/profile@enabled
.
Like this:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
...
<annotationProcessing>
<profile default="true" name="Default" enabled="true"><!-- here -->
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>
You might need to File -> Invalidate Caches / Restart