Lombok Requires Annotation Processing

前端 未结 10 970
不思量自难忘°
不思量自难忘° 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:47

    With the newer gradle versions, it is enough to type these lines into the app's build.gradle's dependencies block:`

    compile "org.projectlombok:lombok:1.16.16"
    annotationProcessor "org.projectlombok:lombok:1.16.16"  
    

    Sync the project with the gradle and it will work.

提交回复
热议问题