Error:Unknown host 'dl.google.com' You may need to adjust the proxy settings in Gradle

前端 未结 13 2060
长情又很酷
长情又很酷 2020-12-06 16:50

I am getting this error in android studio 3.0.

Unknown host \'dl.google.com\' You may need to adjust the proxy settings in Gradle

<
13条回答
  •  半阙折子戏
    2020-12-06 16:55

    In my case, after I config kotlin for project I face this problem.

    After 30 minutes try 'Auto proxy' and learn about proxy with no hope, I see suddenly I see

    repositories {
        mavenCentral()
    }
    

    in the end of my build.gradle. Then I delete it and it working.
    The most interesting is after it working, I put above line to gradle again but it still working. So maybe it is not a root problem, however I think it may bring some luck in some case.

    Currently, I use Window and AndroidStudio 3.4.2

提交回复
热议问题