Question

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

Was it helpful?

Solution

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

OTHER TIPS

have your tried to Enable annotation processing ?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top