简体   繁体   中英

Android Studio: Fixing gradle-wrapper and re-importing project is taking too long

I'm following a tutorial from Udacity and they provide me with a sample code from GitHub:

https://github.com/udacity/DictionaryProviderExample.git

When I try to import or open the project, I get an error saying Gradle version 2.2 is required. Current version is 2.10 Gradle version 2.2 is required. Current version is 2.10 .

I clicked on Fix gradle-wrapper and re-import project , but it's been 30 minutes and it's still not finished.

I'm running Android Studio 2.1.1 on Mac.

Is it supposed to take this long? Is there any way I can get around the Gradle requirement error?

Download This intended version:

https://downloads.gradle.org/distributions/gradle-2.2-all.zip

Extract and copy it to :

C:\Users\{yourUsername}\.gradle\wrapper\dists

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM