idea gradle build报错‘Could not find method annotationProcessor() for arguments’解决办法
idea开发时,使用gradle构建项目,在build时发生错误‘Could not find method annotationProcessor() for arguments’,主要是因为gradle版本过低导致的,参考stackoverflow 上国外程序员回答说,ThisannotationProcessoris available from Gradle4.6.So what ...
·
idea开发时,使用gradle构建项目,在build时发生错误‘Could not find method annotationProcessor() for arguments ’,主要是因为gradle版本过低导致的,参考stackoverflow 上国外程序员回答说,This annotationProcessor is available from Gradle 4.6.So what we should do is just confirm the Gradle's version >=4.6.We'd better use the Wrapper.
解决办法是,要么提升gradle版本,要么修改build.gradle文件,将
annotationProcessor 'org.projectlombok:lombok:1.18.6' 修改为
compile 'org.projectlombok:lombok:1.18.6' 即可
更多推荐
所有评论(0)