【发布时间】:2012-09-11 18:17:21
【问题描述】:
我正在使用 Eclipse、PhoneGap 创建一个 Android 应用,并使用 Sencha Touch 处理 assets\www 文件
但是,当我尝试运行应用程序时,我从 logcat 收到此错误:
09-11 14:11:01.019: E/Web Console(4700): Uncaught ReferenceError: Ext is not defined at file:///android_asset/www/app.js:16
虽然我已经放了:
- 资产\www\sencha-touch.js
- 资产\www\sencha-touch.css
我从我的 sencha-touch-2.0.1.1 文件夹中复制
我还需要在assets\www 文件夹中放置什么?
这真的很奇怪,因为当我从桌面运行 Sencha Touch 应用程序时,移动应用程序在 Google Chrome 和 Firefox 上运行良好,所以我不确定发生了什么。
【问题讨论】:
-
我已经解决了“Ext is not defined 错误”但是当应用程序运行时我得到一个空白的白屏。
标签: android cordova sencha-touch extjs sencha-touch-2