After migrating to Worklight v6.0 I get this error on old Android 2.2 device:
E/dalvikvm(xxx): Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.getWhitelistResponse
After migrating to Worklight v6.0 I get this error on old Android 2.2 device:
E/dalvikvm(xxx): Could not find class 'android.webkit.WebResourceResponse', referenced from method org.apache.cordova.CordovaWebViewClient.getWhitelistResponse
Is this crashing your application or just being printed to the LogCat?
This is fixed in Cordova 2.7.
Worklight 6.0 currently uses Cordova 2.6.
For more information: https://issues.apache.org/jira/browse/CB-3504
In CordovaWebViewClient.java, android.webkit.WebResourceResponse is imported and used by the methods shouldInterceptRequest and getWhitelistResponse. But since android.webkit.WebResourceResponse is only available on devices >= API Level 11, this causes cordova apps to crash on devices at a lower API Level like my Samsung Galaxy S.
Some more from Stackoverflow: