سؤال

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