Create New Project On Android, Error - Studio Unknown Host 'Services - Gradle
Create New Project On Android, Error - Studio Unknown Host 'Services - Gradle
After installing Android studio and creating a new project, I get the following error:
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.
android
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
you can also use the test connection button and check with google.com to see if it works or
not.
I have same problem after update android studio to 1.5, and i fix it by update the gradle
location,
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,
How do we do the same on Linux (e.g Ubuntu) please – nyxee May 21 '16 at 14:16
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)
Also, if your working in a team with repositories, it's important to check that the version of the
Andorid Studio is the same.
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...
https://stackoverflow.com/questions/19678137/create-new-project-on-android-error-studio-unknown-host-services-gradle-org 2/2