How to use lombok plugin in Android Studio?

There are so many posts on this subject its bewildering. I am on the following: enter image description here enter image description here enter image description hereenter image description here 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: enter image description hereimplementation 'org.projectlombok:lombok:1.18.0' annotationProcessor 'org.projectlombok:lombok:1.18.0'enter image description hereclasspath 'org.projectlombok:lombok:1.18.0' And here is the proof:enter image description here 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.