gradle编译报错:
Error:Failed to complete Gradle execution.
Cause:
The version of Gradle you are using (3.3) does not support the forTasks() method on BuildActionExecuter. Support for this is available in Gradle 3.5 and all later versions.
解决:
项目路径:gradle/wrapper/gradle-wrapper.properties打开:
替换distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 为
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip