How to use lombok plugin in Android Studio?
There are so many posts on this subject its bewildering.
I am on the following:
And having torn most of my hair out, trying to figure out
what the heck is going on with gradle top level and project level,
THE ONLY COMBINATION that worked for me was this:
implementation 'org.projectlombok:lombok:1.18.0'
annotationProcessor 'org.projectlombok:lombok:1.18.0'
classpath 'org.projectlombok:lombok:1.18.0'
And here is the proof:
My god is it really this complicated to do something this simple.
You need not only to install Lombok Plugin
, but also add dependency to build.gradle
:
dependencies{
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12' //or v. 1.16.2 in your case.
}
More info on official guide.
Another answer with instructions.