Android Studio : Unknown host
<p>Facing the following issue with Android Studio after an update today.</p>

<p><strong>Error</strong></p>

<pre><code>Unknown host 'This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server'. You may need to adjust the proxy settings in Gradle.

Enable Gradle 'offline mode' and sync project

Learn about configuring HTTP proxies in Gradle
</code></pre>

<p>When I click on "Enable offline mode", get the following error:</p>

<pre><code>Error:No cached version of com.android.tools.build:gradle:2.14.1 available for offline mode.
Disable Gradle 'offline mode' and sync project
</code></pre>

<p><strong>What I have tried:</strong></p>

<p>Options are based on other posts/ suggestions:</p>

<p>a. File > Settings > Build, Execution, Developement > Gradle</p>

<p>Selected the right folder for Gradle.</p>

<p>b. Updated build.gradle file (Project file and NOT Module)</p>

<pre><code>    //classpath 'com.android.tools.build:gradle:2.1.2'
    classpath 'com.android.tools.build:gradle:2.14.1'
</code></pre>

<p>Despite these changes .. the error persists.</p>

<p>Any help or suggestions .. thanks in advance !</p>