Error: package javax.annotation does not exist after upgrade to lombok 1.16.2

后端 未结 3 1071
耶瑟儿~
耶瑟儿~ 2021-02-01 00:50

My android project builds fine with lombok 1.16.0, but once I change my dependency to target 1.16.2, I get the following error everywhere I\'m using a lombok annotation:

<
3条回答
  •  别那么骄傲
    2021-02-01 01:06

    You can disable the generation of javax.annotation.Generated by putting the following line in a lombok.config file in one of the top directories of your project:

    lombok.addGeneratedAnnotation = false
    

    See the configuration documentation for more information.

    Disclosure: I am a Lombok Developer.

提交回复
热议问题