1. 程式人生 > >Android Studio,gradle project sync failed 錯誤

Android Studio,gradle project sync failed 錯誤

因某些原因,之前用Android Studio後解除安裝了,重新裝了之後總是報gradle project sync failed.Basic functionality(eg.editing,debugging) will not work properly錯,然後也總算是解決了

開啟專案中..\gradle\wrapper\gradle-wrapper.properties檔案。我的內容如下:

#Wed Dec 13 10:34:34 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip

開啟最後一行中連結https://services.gradle.org/distributions/gradle-3.3-all.zip下載gradle-3.3-all.zip檔案複製到

C:\Users\Administration\.gradle\wrapper\dists\gradle-3.3-all\55gk2rcmfc6p2dg9u9ohc3hw9下。重新啟動Android Studio。

沒有報錯。問題解決