title: Could not find class 'android.webkit.WebResourceResponse' when running HelloCordova on Android 2.2
body: <p>I tried to follow this tutorial:
  <a href="http://docs.phonegap.com/en/2.7.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android" rel="noreferrer">http://docs.phonegap.com/en/2.7.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android</a></p>
  
  <p>and get the following error:</p>
  
  <pre><code>05-08 15:35:59.845: E/dalvikvm(307): Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.getWhitelistResponse
  </code></pre>
  
  <p>Here a guy explains the error: <a href="https://issues.apache.org/jira/browse/CB-3041" rel="noreferrer">https://issues.apache.org/jira/browse/CB-3041</a></p>
  
  <pre><code>This is a known issue. Because Android 2.3 does not have android.webkit.WebResourceResponse, this code is considered dead by Android 2.3's Dalvik. This means your whitelisting doesn't work properly like it does on Android 4.x, as per CB-2099. I'm going to keep this open, but lower the priority, since we know what causes it and it's an easy "First Bug" for someone if they really want to fix this.
  </code></pre>
  
  <p>He tells the fix is easy, but does not explain how to fix it -.-
  Brilliant!</p>
  
  <p>Obviously one fix is not to run it with an Android 2.2 emulator because it works with Android 4.2.</p>
  
  <p>But how do I get it working in Android 2.2?</p>
  
  <p>I want to build an application that is compatible from API Level 8 and up.</p>