Android Studio 3.0的does not support the forTasks() method on BuildActionExecuter 錯誤
Android Studio 3.0出來後迫不及待的試用了一下,國內的網路不太通暢,所以第一次打的時候可以會耗費一點時間,安裝你幾個更新什麼的,更新之後想要再測試一下自己的程式,出現了以下錯誤:
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.properties"中的:
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
更改為:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zip
如下圖所示:
文章來源:http://tson.com/fortasks-method-error/