Android - Sencha Touch 2 PhoneGap issue for 4.0.x

AndroidCachingCordovaChromiumWeb Based

Android Problem Overview


I have an Android HTC Amaze and an Android HTC Desire. My Sencha Touch 2 apps wrapped by PhoneGap work excellent for the Desire but they refuse to load on the HTC Amaze 4.0.3. I'm getting this kind of errors in log -

08-24 17:08:37.577: E/chromium(16106): external/chromium/net/disk_cache/stat_hub.cc:190: [0824/170837:ERROR:stat_hub.cc(190)] StatHub::Init - App "appname" isn't supported.

Can anybody help?

Android Solutions


Solution 1 - Android

Try to update cordova version as latest one.

cordova -v
npm install -g cordova

current recent cordova version is 8.x. and please check which cordova plugins are installed.

Solution 2 - Android

PhoneGap gives errors while compiling for production builds. Rather than PhoneGap use IONIC framework which under the hood run different libraries of PhoneGap but does not return such errors.

https://ionicframework.com/

If your application is in javascript use IONIC 1.

Solution 3 - Android

If you are using WebView mecanism in your app, try to change for Crosswalk.
In my case, replacing interaction with android.webkit.WebView with crosswalk fixed the issue.

I don't really understand why, but Crosswalk is known for "Uniform runtime across all devices and so you don't have to deal with runtime differences on different devices running different versions of the OS. "

Solution 4 - Android

Try updating your cloud build and re-install it on your Android 4.0.

Seems it needs to be re-installed for the new permissions to be noticed by the Android OS.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionVahanView Question on Stackoverflow
Solution 1 - Androidsirius2013View Answer on Stackoverflow
Solution 2 - AndroidWastiView Answer on Stackoverflow
Solution 3 - AndroidAntoine DrauneView Answer on Stackoverflow
Solution 4 - AndroidMachadoView Answer on Stackoverflow