'Android Studio 2.3 error: "Gradle sync failed: Cause: services.gradle.org"
After I open a new project in Android Studio 2.3, I receive an error such as:
Gradle sync failed: Cause: services.gradle.org
Googling just gave me a log file on an issue tracker page. I have tried uninstalling/reinstalling. I am not behind a proxy and I've already set:
Use default gradle wrapper
Restarting Gradle sync stops at
Refreshing Gradle project
I can't find anything to fix this problem. I am running Android Studio on Windows 8.1 with JRE 1.8.0
Solution 1:[1]
I Guess This Can Help You..... https://gradle.org/install
// for manual installation to get the gradle distribution visit
https;//gradle.org/release
STEPS
1 Dowmload the gradle
2 unzip the pack.
3 create a new folder in your C drive and name it gradle
4 place the unzipped pack into the folder you created
5 Now set the path for your gradle in Android Studio to the just created folder
6 Add the path of your gradle to the System Varaibles.
7 Computer, right click >Properties>Advance System Settings>Enviroment Varaibles>System Varaibles.Path>Edit.
Hope its Helpful
Solution 2:[2]
I also faced the same problem. You have two ways to solve this.
First one is to connect to the Internet and download a new version of Android Studio and the required packages.
Note: You should have "proxies" and "offline work" options enabled.
The second way is to go to file > settings > build > gradle
and do the following:
- Uncheck the "offline work" option.
- Use local gradle distribution and then set the path.
Note: When you have "no proxy" option checked with "offline work" then you have to provide path for every new project.
Solution 3:[3]
I had the same problem. so i followed this https://docs.gradle.org/current/userguide/userguide_single.html#installation finally i got it !!
Android Stidio v 3.0.1
Solution 4:[4]
I have this issue and have tried reinstalling to no avail.
What I found was useful is to look in my home directory (on Ubuntu) and open the .gradle folder and open the matching sub folder and delete the lck file and then manually download the desired gradle version (url distributionUrl value) and place the downloaded file in the folder that had the lck file.
Have attributed this problem to using usb tethering for internet..
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Pascal Chidi |
Solution 2 | user812786 |
Solution 3 | Ahamed Rasheed |
Solution 4 | CrandellWS |