0

最近、Cordova-2.2.0 を使用するようにアプリケーションをアップグレードしました。Android デバイス 2.3 以降で完全に動作します。しかし、Android 2.2 でアプリケーションを実行すると、起動中にアラートがスローされます。

「cordova JS gloals の構築中に例外が発生しました: RangeError: キー "接続" の最大呼び出しスタック サイズを超えました。

ここで何が起こっているのかわかりません。どんな手掛かり?

ログ:

01-16 14:09:30.389: I/MAIN(981): MyActivity::onCreate
01-16 14:09:30.389: D/DroidGap(981): DroidGap.onCreate()
01-16 14:09:30.419: D/CordovaWebView(981): Origin to allow: http://127.0.0.1*
01-16 14:09:30.419: D/CordovaWebView(981): Origin to allow: .*
01-16 14:09:30.419: I/CordovaLog(981): Found log level DEBUG
01-16 14:09:30.419: I/CordovaLog(981): Changing log level to DEBUG(3)
01-16 14:09:30.419: I/CordovaLog(981): Found preference for useBrowserHistory=true
01-16 14:09:30.419: D/CordovaLog(981): Found preference for useBrowserHistory=true
01-16 14:09:30.429: I/CordovaLog(981): Found preference for exit-on-suspend=false
01-16 14:09:30.429: D/CordovaLog(981): Found preference for exit-on-suspend=false
01-16 14:09:30.439: D/JsMessageQueue(981): Set native->JS mode to 2
01-16 14:09:30.439: I/CordovaWebView(981): Disabled addJavascriptInterface() bridge since Android version is old.
01-16 14:09:30.439: D/DroidGap(981): DroidGap.init()
01-16 14:09:30.449: D/CordovaWebView(981): DroidGap.loadUrl(file:///android_asset/www/common/index.html, 10000)
01-16 14:09:30.449: D/DroidGap(981): onMessage(splashscreen,show)
01-16 14:09:30.449: D/CordovaWebView(981): >>> loadUrl(file:///android_asset/www/common/index.html)
01-16 14:09:30.449: D/PluginManager(981): init()
01-16 14:09:30.449: D/CordovaWebView(981): >>> loadUrlNow()
01-16 14:09:30.449: D/DroidGap(981): Resuming the App
01-16 14:09:30.499: D/SoftKeyboardDetect(981): Ignore this event
01-16 14:09:30.569: D/SoftKeyboardDetect(981): Ignore this event
01-16 14:09:30.579: D/DroidGap(981): onMessage(onPageStarted,file:///android_asset/www/common/index.html)
01-16 14:09:30.889: D/Cordova(981): onPageFinished(file:///android_asset/www/common/index.html#welcome)
01-16 14:09:30.889: D/DroidGap(981): onMessage(onNativeReady,null)
01-16 14:09:30.889: D/DroidGap(981): onMessage(onPageFinished,file:///android_asset/www/common/index.html#welcome)
01-16 14:09:30.899: D/Cordova(981): onPageFinished(file:///android_asset/www/common/index.html#welcome)
01-16 14:09:30.899: D/DroidGap(981): onMessage(onNativeReady,null)
01-16 14:09:30.899: D/DroidGap(981): onMessage(onPageFinished,file:///android_asset/www/common/index.html#welcome)
01-16 14:09:32.900: D/DroidGap(981): onMessage(spinner,stop)
01-16 14:09:32.959: D/DroidGap(981): onMessage(spinner,stop)
01-16 14:10:30.209: D/DroidGap(981): Paused the application!
01-16 14:10:30.209: D/CordovaWebView(981): Handle the pause
01-16 14:12:41.879: I/MAIN(981): Ac2Activity::onResume
01-16 14:12:41.879: D/DroidGap(981): Resuming the App
01-16 14:13:42.099: D/DroidGap(981): Paused the application!
01-16 14:13:42.099: D/CordovaWebView(981): Handle the pause
4

1 に答える 1

0

HtmlページのHeadセクションにcordovaスクリプトを追加してみてください。

実際、私にとってもこの解決策はうまくいきました。

于 2013-01-21T05:11:35.880 に答える