Domanda

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

È stato utile?

Soluzione

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

Altri suggerimenti

have your tried to Enable annotation processing ?

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top