Abidin Adi Prasetyo
Abidin Adi Prasetyo

Reputation: 27

Warning about "Lombok Requires Annotation Processing"

i have configure my project on android studio thats use "Lombok" Plugin, i have download Lombok plugin on my IDE Android Studio, i've add compileOnly 'org.projectlombok:lombok:1.18.6', implementation 'javax.annotation:javax.annotation-api:1.3.2'and annotationProcessor 'org.projectlombok:lombok:1.18.6'...even adding it on my default config build graddle app

javaCompileOptions { annotationProcessorOptions { includeCompileClasspath true } }

but it still showing message "Annotation processing seems to be disabled for the project "OptimalRouteFinder". But lombok is on classpath.For the lombok plugin to function correctly, please enable it under bla bla bla"

What i have to do?

Upvotes: 3

Views: 5781

Answers (2)

LXJ
LXJ

Reputation: 1616

This is an issue running in circles. Setting only as Dennis described does not resolve the issue. Accompanying it by replacing 'compileOnly' with 'provided' in the build.gradle makes the warning go away, but Android Studio then complains that 'provided' is deprecated and replaced with 'compileOnly'. I guess I have to ignore the latter warning, then.

+++++++++ Sorry, with 'provided' it doesn't work either. This is an unsolvable issue to me.

Upvotes: 0

ejaz1977pk
ejaz1977pk

Reputation: 11

Go to File -> Other Settings -> Settings for New Project.

Next, go to (Build, Execution, Deployment) -> Compiler -> Annotation Processors and hit [x] Enable annotaion processing

enter image description here

Upvotes: 1

Related Questions