简体   繁体   中英

Android - Sencha Touch 2 PhoneGap issue for 4.0.x

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?

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.

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.

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. "

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM