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

前端 未结 4 1408
無奈伤痛
無奈伤痛 2020-11-27 06:46

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

Unknown host \'services.gradle.org\'.

Please ensure

4条回答
  •  眼角桃花
    2020-11-27 07:10

    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.

提交回复
热议问题