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