Reputation: 67
i download new android studio version 2.3.1 but having an issue i dont know how to deal with it can any one help me , Thanks
Upvotes: 0
Views: 90
Reputation: 237
1.Download gradle-3.3-all.zip from http://services.gradle.org/distributions/
2.Decompress it, open the folder of ‘/Android Studio.app/Contents/gradle’. Delete the old vsersion gradle and copy gradle-3.3 into ‘/Android Studio.app/Contents/gradle’.
3. Open your project's 'gragle/gradle-wrapper.properties',change value
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
4.Close Android studio and restart it.
Upvotes: 0
Reputation: 1347
Go To File/Settings/Gradle
uncheck offline work
and also check use default gradle wrapper(recommended)
Your problem will resolve.
Upvotes: 0
Reputation: 1169
from this SO Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
change distribution url in gradle-wrapper.properties with this one.
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip
Upvotes: 1
Reputation: 650
Go into
gragle/gradle-wrapper.properties
where you will find distributionUrl
change its value to distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
It will solve this issue.
Happy coding!
Upvotes: 0