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
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!