问题
Ok here's my problem.
- deleting gradle folder
- downloading latest gradle 1.10 and 1.12 manually and locating using offline mode
- open gradle wrapper properties and build.gradle files and editing as mentioned in other blogs
- Invalidate caches and restart
Nothing worked, but when I set
"distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip"
in gradle wrapper properties.... it said: "Gradle project syncing.." and I guess it was downloading gradle 1.12 but it didn't download only said "Gradle project syncing.." for a whole day.
回答1:
I had this issue and tried many of the posted solutions to no avail. In the end, I actually just did build -> Clean Project and it worked.
来源:https://stackoverflow.com/questions/24531672/android-studio-0-8-1-gradle-project-sync-failed-basic-functionality-e-g-edit