title: Error "Unable to resolve host <url>: No address associated with hostname" for application with Internet permission
body: <p>I am developing an android application on Android L (5.0.1). I have internet permission in my manifest as follows:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  </code></pre>
  
  <p>I am receiving the following error:
  <code>Unable to resolve host &lt;url&gt;: No address associated with hostname</code>
  while running my application. </p>
  
  <p>Restarting the Wifi on the phone while the application is open fixes the issue for that session. That means the URL is working fine.
  Doing this each time while testing the application is time consuming.
  This is also unacceptable in production.</p>
  
  <p>Could not find any similar issues online. Any help would be greatly appreciated.</p>