本文記錄在使用新版本3.0時所遇到的一些問題。android
The version of Gradle you are using (2.14.1) does not support the forTasks() method on BuildActionExecuter. Support for this is available in Gradle 3.5 and all later versions.api
解決:找到 gradle-wrapper.propertie ,將distributionUrl後面的改成app
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zipgradle
Error:org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollectionui
解決:項目版本Gradle 與Studio Gradle 版本不一致,改爲一致便可,另外注意Gradle 的插件版本要與Gradle搭配好。this
Android Studio 插件Plugin won't loadspa
解決:插件
從新選擇以後 會有reset 按鈕,重啓便可ip
Ps:我本身遇到的狀況稍複雜,reset按鈕沒反應 我把用不到的firebase 幾個選項去掉了 重啓以後行了it
Gradle error : Write access is allowed from event dispatch thread only in android studio
解決:jdk版本不統一