Ext未定义错误

时间:2012-09-11 06:14:52

标签: android cordova sencha-touch extjs sencha-touch-2

我正在使用Eclipse,PhoneGap和使用Sencha Touch为assets\www文件创建一个Android应用

但是当我尝试运行应用程序时,我从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 \煎茶-touch.js
  • 资产\ WWW \煎茶-touch.css

我从 sencha-touch-2.0.1.1 文件夹中复制了

我需要在assets\www文件夹中放置哪些其他内容?

这真的很奇怪,因为当我在桌面上运行Sencha Touch应用程序时,移动应用程序可以正常使用谷歌Chrome和Firefox,所以我不确定发生了什么。

2 个答案:

答案 0 :(得分:2)

这是SDK期望包含完整的JS,CSS和HTML文件集的默认文件夹。

您还需要将phonegap.js保存在www文件夹中 还可以尝试从Sencha-touch-2.0.1.1文件夹复制资源,也可以尝试复制sencha-touch-debug.js(不是必需的)。

答案 1 :(得分:0)

你在index.html文件中添加了senchatouch.js和senchatouch.css的文件路径。如果没有在index.html中添加以下行 1。“<”link rel =“stylesheet”href =“sencha-touch.css”type =“text / css”“>” 2.“<”link rel =“stylesheet”href =“sencha-touch.css”type =“text / css”“>”

相关问题