title: On Android emulator, trying to load a webview i get net::err_cache_miss
body: <p>I tried the example shown on Android developers website to show a webpage on a WebView component without success. The emulator shows the following error:</p>
  
  <blockquote>
    <p>Webpage not available the webpage at <a href="http://developer.android.com" rel="nofollow noreferrer">http://developer.android.com</a>
    could not be loaded because: net::ERR_CHACHE_MISS</p>
  </blockquote>
  
  <p>I could not find any solution so far, even after looking on other threads on the web. I have also tried different links.
  I do not know if could be helpful in understanding the cause of this error, but the emulator is Nexus 4 API 21 with Android 5.0.1. I am using Android Studio 1.0.</p>
  
  <p>The code is the same of the example:</p>
  
  <pre><code>In MainActivity.java:
  
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);            
      setContentView(R.layout.activity_main);
  
      WebView myWebView = (WebView) findViewById(R.id.webview);
      WebSettings webSettings = myWebView.getSettings();
      webSettings.setJavaScriptEnabled(true);           
      myWebView.loadUrl("http://developer.android.com/");
  }
  </code></pre>
  
  <p>In AndroidManifest:</p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  .....
  </code></pre>
  
  <p>And in the view I have added the same code of the example</p>
  
  <p>Example is on:
  <a href="http://developer.android.com/guide/webapps/webview.html" rel="nofollow noreferrer">http://developer.android.com/guide/webapps/webview.html</a></p>