2016-07-24 31 views
5

全標題我想錯誤:支持的搖籃版本最低爲2.10,搖籃3.x中不支持尚未

Error:Minimum supported Gradle version is 2.10, Gradle 3.x is not supported yet. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in ...\gradle-wrapper.properties to gradle-2.10-all.zip

我有我試圖Android Studio中2.2(打開舊項目預覽版6),當我嘗試構建項目時,出現以下錯誤。

Error:Minimum supported Gradle version is 2.10, Gradle 3.x is not supported yet. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in C:\Users\home\Documents\code\MY_PROJECTS\notify-me-not-app\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip

enter image description here

我沒去下面的gradle-wrapper.properties這是我的文件看起來像:

\gradle\wrapper

#Fri Jul 17 23:20:07 CDT 2015 
distributionBase=GRADLE_USER_HOME 
distributionPath=wrapper/dists 
zipStoreBase=GRADLE_USER_HOME 
zipStorePath=wrapper/dists 
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip 
+0

你的build.gradle文件在gradle版本中說了些什麼? – njzk2

回答

14

您使用2.4小於2.10(4 < 10)。更改分發網址就像它要求

distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip 
+0

我假設爲2.10,意味着它是2.1所以<2.4,這有幫助。 – user1406716