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

前端 未结 13 2059
长情又很酷
长情又很酷 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 17:15

    Basically when u add some new dependencies you require an internet connection to download the dependencies from the internet. By default the Android Studio as set the option to connecting to the internet to get a proper flow. But if u cant connect to the internet, work with the gradle in offline mode and later when the internet comes again...it will automatically download the necessary files in background!

    Solution: Click on Enable gradle offline mode and sync the project!

提交回复
热议问题