Android - Sencha Touch 2 PhoneGap问题为4.0.x

时间:2021-02-16 04:08:18

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 -

我有Android HTC Amaze和Android HTC Desire。由PhoneGap包装的我的Sencha Touch 2应用程序非常适合Desire,但他们拒绝加载HTC Amaze 4.0.3。我在日志中遇到这种错误 -

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?

有人可以帮忙吗?

4 个解决方案

#1


1  

Try to update cordova version as latest one.

尝试更新cordova版本作为最新版本。

cordova -v
npm install -g cordova

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

目前最新的cordova版本是8.x.请检查安装了哪些cordova插件。

#2


0  

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.

如果您在应用程序中使用WebView mecanism,请尝试更改Crosswalk。在我的情况下,用crosswalk替换与android.webkit.WebView的交互修复了这个问题。

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

我不太明白为什么,但Crosswalk以“在所有设备上统一运行时而闻名,因此您不必在运行不同版本操作系统的不同设备上处理运行时差异。”

#3


0  

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.

PhoneGap在编译生产版本时会出错。而不是PhoneGap使用IONIC框架在幕后运行不同的PhoneGap库但不返回此类错误。

https://ionicframework.com/

https://ionicframework.com/

If your application is in javascript use IONIC 1.

如果您的应用程序是在JavaScript中使用IONIC 1。

#4


-1  

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

尝试更新您的云构建并在Android 4.0上重新安装它。

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

似乎需要重新安装才能获得Android操作系统注意到的新权限。

#1


1  

Try to update cordova version as latest one.

尝试更新cordova版本作为最新版本。

cordova -v
npm install -g cordova

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

目前最新的cordova版本是8.x.请检查安装了哪些cordova插件。

#2


0  

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.

如果您在应用程序中使用WebView mecanism,请尝试更改Crosswalk。在我的情况下,用crosswalk替换与android.webkit.WebView的交互修复了这个问题。

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

我不太明白为什么,但Crosswalk以“在所有设备上统一运行时而闻名,因此您不必在运行不同版本操作系统的不同设备上处理运行时差异。”

#3


0  

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.

PhoneGap在编译生产版本时会出错。而不是PhoneGap使用IONIC框架在幕后运行不同的PhoneGap库但不返回此类错误。

https://ionicframework.com/

https://ionicframework.com/

If your application is in javascript use IONIC 1.

如果您的应用程序是在JavaScript中使用IONIC 1。

#4


-1  

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

尝试更新您的云构建并在Android 4.0上重新安装它。

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

似乎需要重新安装才能获得Android操作系统注意到的新权限。