Lombok Requires Annotation Processing

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

    The setup guide from the lombok website(lombok set up for android) says we should do two things

    1, install the lombok plugin

    2, add gradle dependencies

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

    But for me the plugin causes the problem to occur. After I disabled the plugin the error went away and lombok still works.

提交回复
热议问题