简体   繁体   中英

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?

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

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

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM