Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-995

Use of WebResourceResponse logs errors in Android 2.x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.9.0
    • 2.1.0
    • cordova-android
    • None

    Description

      Hey,

      When using 1.9.0 on Android on OS version 2.3.6 I get the following logs complaining about the lack of WebResourceResponse. That class does not get introduced into the SDK until API level 11, so we'll see this on Android 2.1 - 2.3. I haven't seen any ill effects of the change but we should try and suppress this if possible.

      /dalvikvm(2233): Could not find method android.webkit.WebView.<init>, referenced from method org.apache.cordova.CordovaWebView.<init>
      W/dalvikvm(2233): VFY: unable to resolve direct method 325: Landroid/webkit/WebView;.<init> (Landroid/content/Context;Landroid/util/AttributeSet;IZ)V
      D/dalvikvm(2233): VFY: replacing opcode 0x70 at 0x0001
      D/dalvikvm(2233): VFY: dead code 0x0004-0059 in Lorg/apache/cordova/CordovaWebView;.<init> (Landroid/content/Context;Landroid/util/AttributeSet;IZ)V
      I/CordovaLog(2233): Changing log level to DEBUG(3)
      E/dalvikvm(2233): Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.generateWebResourceResponse
      W/dalvikvm(2233): VFY: unable to resolve new-instance 126 (Landroid/webkit/WebResourceResponse in Lorg/apache/cordova/CordovaWebViewClient;
      D/dalvikvm(2233): VFY: replacing opcode 0x22 at 0x0046
      W/dalvikvm(2233): VFY: unable to find class referenced in signature (Landroid/webkit/WebResourceResponse
      D/dalvikvm(2233): VFY: dead code 0x0048-004c in Lorg/apache/cordova/CordovaWebViewClient;.generateWebResourceResponse (Ljava/lang/String;)Landroid/webkit/WebResourceResponse;
      W/dalvikvm(2233): VFY: unable to find class referenced in signature (Landroid/webkit/WebResourceResponse
      W/dalvikvm(2233): VFY: unable to find class referenced in signature (Landroid/webkit/WebResourceResponse
      I/dalvikvm(2233): Could not find method android.webkit.WebViewClient.shouldInterceptRequest, referenced from method org.apache.cordova.CordovaWebViewClient.shouldInterceptRequest
      W/dalvikvm(2233): VFY: unable to resolve virtual method 336: Landroid/webkit/WebViewClient;.shouldInterceptRequest (Landroid/webkit/WebView;Ljava/lang/String;)Landroid/webkit/WebResourceResponse;
      D/dalvikvm(2233): VFY: replacing opcode 0x6f at 0x0015
      D/dalvikvm(2233): VFY: dead code 0x0018-0019 in Lorg/apache/cordova/CordovaWebViewClient;.shouldInterceptRequest (Landroid/webkit/WebView;Ljava/lang/String;)Landroid/webkit/WebResourceResponse;
      D/DroidGap(2233): DroidGap.init()
      D/CordovaWebView(2233): DroidGap.loadUrl(file:///android_asset/www/index.html, 20000)
      D/DroidGap(2233): onMessage(splashscreen,show)
      D/dalvikvm(2233): GC_EXTERNAL_ALLOC freed 97K, 52% free 2614K/5379K, external 884K/1038K, paused 80ms
      D/CordovaWebView(2233): >>> loadUrl(file:///android_asset/www/index.html)
      D/PluginManager(2233): init()
      D/CordovaWebView(2233): >>> loadUrlNow()
      D/CordovaWebView(2233): >>> loadUrlNow()
      D/MyService(2233): onStart
      D/DroidGap(2233): onMessage(onPageStarted,file:///android_asset/www/index.html)

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            macdonst Simon MacDonald
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: