简体   繁体   中英

Project Lombok AllArgsConstructor not working

It seems like many people are having this problem, but none of the problems i have researched so far are that basic like my problem.

I only got this object:

在此处输入图片说明

and a basic call in my main method:

在此处输入图片说明

Bamm... already not working. The compilataion fails with this error

在此处输入图片说明

I am using IntelliJ and have installed the Lombok plugin.

在此处输入图片说明

If it helps... here is my build.gradle: 在此处输入图片说明

Any ideas ?

Lombok uses the annotation processor to do its magic so you have to add lombok annotationProcessor dependency in your build.gradle file. Add this line inside your dependencies block:

annotationProcessor 'org.projectlombok:lombok:1.18.6'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM