For my scenario, it is to use IntelliJ IDE Community to open the project, and it turns out that it is the settings of the IntelliJ IDEA Ultimate that is messing up the Gradle build.