见:https://stackoverflow.com/questions/47444648/could-not-find-method-lombok-for-arguments
According to the documentation you should use either
lombok {
version = "1.16.18"
sha256 = ""
}
or
dependencies {
compileOnly 'org.projectlombok:lombok:1.16.18'
apt "org.projectlombok:lombok:1.16.18"
}