2015-10-04 59 views
0

我已升級到Windows 10和最新版本的studio(1.4) 。我試圖導入一個我一直在工作的項目(之前它工作正常)。升級到1.4後出現Android工作室gradle錯誤 - 錯誤:原因:https://downloads.gradle.org/distributions/gradle-2.2.1_all.zip

我遇到一個嚴重錯誤:

"Gradle 'Reiki' project refresh failed: Error: Cause: https://downloads.gradle.org/distributions/gradle-2.2.1_all.zip "

有誰知道如何解決這一問題?我花了幾個小時看着其他工作室gradle問題和答案,並且找不到這個特殊問題:

錯誤代碼如下:

2015-10-03 20:27:34,111 [ 36960] WARN - radle.project.ProjectSetUpTask -
2015-10-03 20:27:34,112 [ 36961] INFO - radle.project.ProjectSetUpTask - >Cause: https://downloads.gradle.org/distributions/gradle-2.2.1_all.zip

Consult IDE log for more details (Help | Show Log) 2015-10-03 20:27:34,112 [ 36961] INFO - ls.idea.gradle.GradleSyncState - >Sync with Gradle for project 'Reiki' failed: Cause: >https://downloads.gradle.org/distributions/gradle-2.2.1_all.zip

Consult IDE log for more details (Help | Show Log) 2015-10-03 20:27:34,300 [ 37149] INFO - #com.jetbrains.cidr.lang - >Clearing symbols finished in 0 s. 2015-10-03 20:27:34,300 [ 37149] INFO - #com.jetbrains.cidr.lang - >Loading symbols finished in 0 s. 2015-10-03 20:27:34,300 [ 37149] INFO - #com.jetbrains.cidr.lang - >Building symbols finished in 0 s. 2015-10-03 20:27:34,300 [ 37149] INFO - #com.jetbrains.cidr.lang - >Saving symbols finished in 0 s.

+0

目前gradle-wrapper.properties文件有以下: distributionBase = GRADLE_USER_HOME distributionPath =包裝/ dists中 zipStoreBase = GRADLE_USER_HOME zipStorePath =包裝/ dists中 distributionUrl = https \://services.gradle.org/distributions/gradle-2.2.1_all.zip –

回答

2

鏈接

https://downloads.gradle.org/distributions/gradle-2.2.1_all.zip 

錯誤

檢查gradle/wrapper/gradle-wrapper.properties文件及用途:

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

嗨Gabrielle - gradle-wrapper.properties已經有這個鏈接:#Sun Jan 18 18:44:30 EST 2015 distributionBase = GRADLE_USER_HOME distributionPath =包裝/ dists中 zipStoreBase = GRADLE_USER_HOME zipStorePath =包裝/ dists中 distributionUrl = HTTPS \://services.gradle.org/distributions/gradle-2.2.1_all.zip –

+0

@OmahaNebrasca閱讀更好的答案。 2.2.1_all不是2.2.1-all –

+0

謝謝你這個,小小的變化讓我超越了這個gradle錯誤。我現在遇到了一個不同的錯誤('未能找到目標-android-20'),但我會檢查是否有關於該問題的單獨線程。謝謝你的幫助。 –

相關問題