AllArgsConstructor from lombok is not found by Android Studio

后端 未结 6 1209
猫巷女王i
猫巷女王i 2020-12-09 16:50

When I create a new Java class with one or more field and attach the @AllArgsConstructor annotation from lombok to it, then i get this message

Err

6条回答
  •  萌比男神i
    2020-12-09 17:03

    You need to add suppression in your AllArgsConstructors. If you don't want to add a new config file, you can simply do this:

    @AllArgsConstructor(suppressConstructorProperties = true)
    

    Disclosure: I'm not a Lombok developer :D

提交回复
热议问题