[ 
https://issues.apache.org/jira/browse/CB-3041?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633291#comment-13633291
 ] 

Joe Bowser commented on CB-3041:
--------------------------------

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.
                
> Could not find class 'android.webkit.WebResourceResponse', referenced from 
> method org.apache.cordova.CordovaWebViewClient.getWhitelistResponse
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-3041
>                 URL: https://issues.apache.org/jira/browse/CB-3041
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.6.0
>         Environment: HTC Legend, Android 2.3.7.
>            Reporter: Juan Felipe Alvarez Saldarriaga
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: android
>
> When I load my app in this Android version, 2.3.6, I got this error:
> 04-15 19:25:59.483: I/dalvikvm(2051): Could not find method 
> android.webkit.WebView.<init>, referenced from method 
> org.apache.cordova.CordovaWebView.<init>
> 04-15 19:25:59.483: W/dalvikvm(2051): VFY: unable to resolve direct method 
> 344: Landroid/webkit/WebView;.<init> 
> (Landroid/content/Context;Landroid/util/AttributeSet;IZ)V
> 04-15 19:25:59.483: D/dalvikvm(2051): VFY: replacing opcode 0x70 at 0x0001
> 04-15 19:25:59.483: D/dalvikvm(2051): VFY: dead code 0x0004-0046 in 
> Lorg/apache/cordova/CordovaWebView;.<init> 
> (Landroid/content/Context;Landroid/util/AttributeSet;IZ)V
> 04-15 19:25:59.653: D/dalvikvm(2051): GC_EXTERNAL_ALLOC freed 59K, 50% free 
> 2722K/5379K, external 0K/0K, paused 127ms
> 04-15 19:25:59.883: D/JsMessageQueue(2051): Set native->JS mode to 2
> 04-15 19:25:59.883: E/dalvikvm(2051): Could not find class 
> 'android.webkit.WebResourceResponse', referenced from method 
> org.apache.cordova.CordovaWebViewClient.getWhitelistResponse
> 04-15 19:25:59.883: W/dalvikvm(2051): VFY: unable to resolve new-instance 130 
> (Landroid/webkit/WebResourceResponse;) in 
> Lorg/apache/cordova/CordovaWebViewClient;
> 04-15 19:25:59.883: D/dalvikvm(2051): VFY: replacing opcode 0x22 at 0x000b
> 04-15 19:25:59.883: D/dalvikvm(2051): VFY: dead code 0x000d-0014 in 
> Lorg/apache/cordova/CordovaWebViewClient;.getWhitelistResponse 
> ()Landroid/webkit/WebResourceResponse;
> 04-15 19:25:59.893: W/dalvikvm(2051): VFY: unable to find class referenced in 
> signature (Landroid/webkit/WebResourceResponse;)
> 04-15 19:25:59.893: W/dalvikvm(2051): VFY: unable to find class referenced in 
> signature (Landroid/webkit/WebResourceResponse;)
> 04-15 19:25:59.893: W/dalvikvm(2051): VFY: unable to find class referenced in 
> signature (Landroid/webkit/WebResourceResponse;)
> 04-15 19:25:59.893: D/DroidGap(2051): DroidGap.init()
> 04-15 19:25:59.963: D/dalvikvm(2051): GC_EXTERNAL_ALLOC freed 68K, 49% free 
> 2766K/5379K, external 168K/525K, paused 55ms
> 04-15 19:26:00.043: D/CordovaWebView(2051): 
> DroidGap.loadUrl(file:///android_asset/www/index.html, 10000)
> 04-15 19:26:00.043: D/DroidGap(2051): onMessage(splashscreen,show)
> 04-15 19:26:00.043: D/CordovaWebView(2051): >>> 
> loadUrl(file:///android_asset/www/index.html)
> 04-15 19:26:00.043: D/PluginManager(2051): init()
> 04-15 19:26:00.053: D/CordovaWebView(2051): >>> loadUrlNow()
> 04-15 19:26:00.053: D/DroidGap(2051): Resuming the App
> 04-15 19:26:00.113: D/SoftKeyboardDetect(2051): Ignore this event
> 04-15 19:26:00.143: D/DroidGap(2051): 
> onMessage(onPageStarted,file:///android_asset/www/index.html)
> 04-15 19:26:00.233: D/SoftKeyboardDetect(2051): Ignore this event
> 04-15 19:26:00.673: D/szipinf(2051): Initializing inflate state
> 04-15 19:26:00.673: D/szipinf(2051): Initializing zlib to inflate
> 04-15 19:26:00.713: D/szipinf(2051): Initializing inflate state
> 04-15 19:26:00.833: D/dalvikvm(2051): GC_CONCURRENT freed 74K, 46% free 
> 3088K/5639K, external 768K/1280K, paused 4ms+15ms
> 04-15 19:26:00.833: D/szipinf(2051): Initializing zlib to inflate
> 04-15 19:26:01.283: D/szipinf(2051): Initializing inflate state
> 04-15 19:26:01.283: D/szipinf(2051): Initializing zlib to inflate
> 04-15 19:26:02.313: D/Cordova(2051): 
> onPageFinished(file:///android_asset/www/index.html)
> 04-15 19:26:02.313: D/Cordova(2051): Trying to fire onNativeReady
> 04-15 19:26:02.313: D/DroidGap(2051): onMessage(onNativeReady,null)
> 04-15 19:26:02.313: D/DroidGap(2051): 
> onMessage(onPageFinished,file:///android_asset/www/index.html)
> 04-15 19:26:02.413: D/CordovaNetworkManager(2051): Connection Type: wifi
> 04-15 19:26:02.413: D/DroidGap(2051): onMessage(networkconnection,wifi)
> 04-15 19:26:02.413: D/CordovaNetworkManager(2051): Connection Type: wifi
> 04-15 19:26:02.413: D/DroidGap(2051): onMessage(spinner,stop)
> 04-15 19:26:04.383: D/DroidGap(2051): onMessage(spinner,stop)
> 04-15 19:26:39.253: D/DroidGap(2051): Paused the application!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to