I just recently downloaded an Android Studio and installed it on my PC. But When I try to set up my first project \"hello world\", it always brings up the following:
<Today i faced the same problem.I got a solution.Hope this will be helpful.
1.Just look gradle-wrapper.properties from project opened inside android studio. distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip
2.Now to go C:\Users.gradle\wrapper\dists there you can see different gradle versions.Im my case i had a latest version gradle-2.11-all.
3.Now go to android studio - File ->invalidate Cache/Restart 4.Now edit gradle-wrapper.properties and add latest version of gradle there.After updation my gradle-wrapper.properties looked like this.
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-all.zip
Now Sync project. Thats it. Happy Coding Guys.Have a great day.
I also faced the same problem.I exited from Android Studio and re-opened Android Studio.In my case,The Problem Solved Then.You Can Try this Procedure.
Sitting on MacOs 10.14.6 tried these things:
Nothing helped. The only worked is reset Mac
Still dont know what caused this behaviour
In my case, after trying all of the above, I realised:
I switched to my phone hotspot, and deactivated the Offline work.
Now (after 1 and a half hours) my builds are running again.
Hope this helps.
Solution: The only workaround for me is to use ipv6 instead of ipv4 : in bin/studio.vmoptions or bin/studio64.vmoptions (depending on if you are in 32 or 64 bits), change the line
by
Today I faced the same issue. File-Invalidate & Restart worked for me.