报错信息:
No incremental compile snapshot data available for C:\Users\Lenovo\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.16.0\bb6115c895bfe0251f0061fb6783b1652139724e\log4j-api-2.16.0.jar with hash 34e93bc2e4ffea157bf7d0cedcb6350a.
解决方案
禁止增量编译,在工程gradle配置中,增加如下:
tasks.withType(JavaCompile) {
options.incremental = false
}