0% found this document useful (0 votes)
209 views2 pages

Create New Project On Android, Error - Studio Unknown Host 'Services - Gradle

The document discusses solutions to an error encountered when creating a new Android project in Android Studio - "Unknown host 'services.gradle.org'". Suggested fixes include enabling auto-detection of HTTP proxy settings in Android Studio preferences, updating the Gradle version and location settings, and ensuring the Android Studio and Gradle versions used are consistent across team repositories.

Uploaded by

reybi tubil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
209 views2 pages

Create New Project On Android, Error - Studio Unknown Host 'Services - Gradle

The document discusses solutions to an error encountered when creating a new Android project in Android Studio - "Unknown host 'services.gradle.org'". Suggested fixes include enabling auto-detection of HTTP proxy settings in Android Studio preferences, updating the Gradle version and location settings, and ensuring the Android Studio and Gradle versions used are consistent across team repositories.

Uploaded by

reybi tubil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

10/11/2017 Create new project on Android, Error: Studio Unknown host 'services.gradle.

org' - Stack Overflow

Learn, Share, Build


Each month, over 50 million developers come to Stack Overflow to Google Facebook
learn, share their knowledge, and build their careers. OR

Join the world’s largest developer community.

Create new project on Android, Error: Studio Unknown host 'services.gradle.org'

After installing Android studio and creating a new project, I get the following error:

Unknown host 'services.gradle.org'.

Please ensure the host name is correct. If you are behind an HTTP proxy, please configure the proxy settings either in Android
Studio or Gradle.

Consult IDE log for more details (Help | Show Log)

How can I fix it?

android

edited Apr 7 at 3:59 asked Oct 30 '13 at 9:15


Housekeeping Jhohannes Purba
21 4 164 1 2 11

4 Answers

I was also having the same problem. I tried the following and it's working for me now:
Please try the following steps:

Go to..

File > Settings > Appearance & Behavior > System Settings > HTTP Proxy [Under IDE
Settings] Enable following option Auto-detect proxy settings

On Mac it's under:

Android Studio > Preferences > Appearance & Behaviour... etc

you can also use the test connection button and check with google.com to see if it works or
not.

edited Jul 28 '16 at 10:03 answered Nov 8 '13 at 17:15


MorZa Pratik Mistry
505 4 16 469 3 2

1 It didn't work for me, unluckily :( – Mr Narendra Jun 1 '16 at 10:31

I have same problem after update android studio to 1.5, and i fix it by update the gradle
location,

1. Go to File->Setting->Build, Execution, Deployment->Build Tools->Gradle


2. Under Project level Setting find gradle directory

https://stackoverflow.com/questions/19678137/create-new-project-on-android-error-studio-unknown-host-services-gradle-org 1/2
10/11/2017 Create new project on Android, Error: Studio Unknown host 'services.gradle.org' - Stack Overflow
Hope this method works for you,

answered Dec 15 '15 at 16:28


affhendrawan
131 2 6

Like a charm :) – abhi Dec 20 '15 at 17:23

How do we do the same on Linux (e.g Ubuntu) please – nyxee May 21 '16 at 14:16

I tried above answers and they didn't help in my case.

I solved it with this link help: http://vjscrazzy.blogspot.co.il/2016/02/failed-to-sync-gradle-


project.html

step 1) file>Setttings>appearance and behaviour> system setttings>HTTP proxy> set No


Proxy

step 2) build,execution and deployment> Build tools > gradle> now under project level
settings > select local gradle distribution> gradle home = F:/Program Files/Android/Android
Studio/gradle/gradle-2.4

After that, I did these changes(because it still wrote me some other errors)

Android Studio asked me:

1. Android Studio asked me to update my Gradle version (which he didn't before)


2. Enable - Tools> Android> Enable ADB integration.

Also, if your working in a team with repositories, it's important to check that the version of the
Andorid Studio is the same.

edited Apr 11 '16 at 17:47 answered Apr 11 '16 at 17:36


LamaTo
135 1 1 17

when have installed gradle why must be download it agin! was very usefull. – msoa Jun 12 '16 at 8:02

Go to setting option which is on upper strip of android studio and follow the below steps to
solve the problem.

setting > Appearance&behavior > HTTP and proxy > click on Auto detect Enable option.
(The option with radio box)select this one...

edited Mar 13 '16 at 10:12 answered Mar 13 '16 at 9:11


Sandeep Parth purohit
1,107 4 12 29 11 1

protected by Community ♦ Apr 7 at 2:59


Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on
this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

https://stackoverflow.com/questions/19678137/create-new-project-on-android-error-studio-unknown-host-services-gradle-org 2/2

You might also like