surroundings
gradle: gradle-4.10-bin.zip
idea: idea-2020.1
Error
solution
Incremental compilation is prohibited. In the project gradle configuration, add the following:
tasks.withType(JavaCompile) {
options.incremental = false
}
Has been compiled and passed.
github issue:https://github.com/gradle/gradle/issues/6612