문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top