我们即将推出我们的第一个应用程序,到目前为止,作为 phonegap 初学者,我们正在取得相当不错的进展。(至少恕我直言)
到目前为止,我们在 Android 4.2+ 上对其进行了测试,并且运行良好。今天早上我正在设置一个 android 模拟器,看看它在 2.2 和 2.3.3 设备上是如何工作的,有点震惊。它根本不起作用。
我们正在使用 durandal 作为 SPA 框架,一旦我单击菜单项,我就会收到以下错误:
应用程序错误
是一个目录(file:///#/tasks)
[好的]
当我点击确定时,应用程序关闭,就是这样。到目前为止,这是我在日志中发现的内容:
I/CordovaLog( 343): Found start page location: index.html
I/CordovaLog( 343): Changing log level to DEBUG(3)
I/CordovaLog( 343): Found start page location: index.html
I/CordovaLog( 343): Changing log level to DEBUG(3)
D/CordovaLog( 343): file:///android_asset/www/phonegap.js: Line 912 : Falling back on PROMPT mode since _cordovaNative is missing. Expected for Android 3.2 and lower only.
D/CordovaLog( 343): file:///android_asset/www/phonegap.js: Line 6725 : deviceready has not fired after 5 seconds.
D/CordovaLog( 343): file:///android_asset/www/phonegap.js: Line 6718 : Channel not fired: onDOMContentLoaded
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : Debug mode enabled.
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : Starting Application
D/CordovaLog( 343): file:///android_asset/www/index.html: Line 133 : init fired
D/CordovaLog( 343): file:///android_asset/www/index.html: Line 133 : GA Plugin Success
D/CordovaLog( 343): file:///android_asset/www/index.html: Line 133 : GA Plugin Track Page Success
D/CordovaLog( 343): file:///android_asset/www/index.html: Line 133 : Device Name: undefined<br />Device Cordova: 2.9.0 JS=2.9.0-0-g83dc4bd<br />Device Platform: Android<br />Device UUID: xxx<br />Device Version: 2.3.3<br />
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : Started Application
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : [services/model] ,Validators created
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : [services/model] ,Validators registered
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : Activating,[object Object]
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : [services/datacontext] ,Entity saved
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : [services/model] ,Lesson validators applied,subject,timetable,dayOfWeek
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : [services/model] ,Settings validators applied,language
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : [services/model] ,Task validators applied,priority
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : [viewmodels/shell] ,Schulheld Loaded!
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : Activating Route,[object Object],[object Object],Sammy.Object: {"routeInfo": [object Object],"router": [object Object]}
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : Activating,[object Object]
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : Binding,views/shell,[object Object]
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : Binding,views/dashboard,[object Object]
D/CordovaLog( 343): file:///android_asset/www/App/main-built.js: Line 22 : Binding,views/nav,[object Object]
D/CordovaLog( 343): : Line 1 : exception firing destroy event from native
地球上是否有人遇到过类似的问题,并且可能知道导致此问题的原因或如何解决此问题?