Lombok Requires Annotation Processing

前端 未结 10 967
不思量自难忘°
不思量自难忘° 2020-12-16 09:04

I\'m using Android Studio 2.2 Preview 7, and the Lombok plugin suddenly started saying: Annotation processing seems to be disabled for the project X, and provid

10条回答
  •  悲哀的现实
    2020-12-16 09:57

    As of Android Studio v3.5 (august 2019) and prior, there wasn't setting for annotation processor. It is however sufficient to define in build.gradle in dependencies section :

    dependencies {
    ...
        compileOnly 'org.projectlombok:lombok:1.18.8'
        annotationProcessor 'org.projectlombok:lombok:1.18.8'
    ...
    }
    

    If Android studio still complains about "Lombok Requires Annotation Processing", for me it was Lombok plugin reinstallation and "Invalidate Caches / Restart" that fixed the problem.

提交回复
热议问题