Android Lombok IntelliJ integration

I'm trying to include lombok in my android project, I'm using IntelliJ IDEA as my IDE. The project is built with maven. I've added the lombok dependency and compiling the project with maven succeeds.

In IntelliJ I've installed the lombok plugin which also works - I see the generated getters/setters.

Hovewer, when I try to make the project in IntelliJ, the build fails:

error: cannot find symbol method setName(String)

In a standard Java environment, adding lombok to the classpath would be sufficient for the project to compile. What in the android environment is causing the compilation to fail?

EDIT: I've created an issue on the IntelliJ Bugtracker: http://youtrack.jetbrains.com/issue/IDEA-94749


I've filed a bug and they fixed it in IntelliJ IDEA 12.1 :
http://youtrack.jetbrains.com/issue/IDEA-94749


have your tried to Enable annotation processing ?

go under Settings->Compiler->Annotation Processors. and make sure 'Enable annotation processing' is enabled.

链接地址: http://www.djcxy.com/p/96582.html

上一篇: 如何更改IntelliJ IDEA默认JDK?

下一篇: Android Lombok IntelliJ集成