2011-12-18 69 views
2

我在尝试使用Sencha Touch和PhoneGap构建Android应用程序时遇到了一个问题。PhoneGap with SenchaTouch for Android应用程序

我使用PhoneGap v1.2.0,Sencha Touch 2.0.0 pr3来构建一个简单的基于地图的应用程序并获取此问题。

控制台上的错误日志指向未找到Ext变量(请参见下文)。

D/PhoneGapLog( 626): ReferenceError: Can't find variable: Ext 
D/PhoneGapLog( 626): file:///android_asset/www/app.js: Line 2 : ReferenceError: Can't find variable: Ext 

我已经加载的URL定义的扩展超时值:

super.setIntegerProperty("loadUrlTimeoutValue", 400000); 
super.loadUrl("file:///android_asset/www/index.html"); 

下面是我想在index.html的加载脚本文件。

<script type="text/javascript" src="touch/sencha-touch-all.js"></script> 
<script type="text/javascript" src="app.js"></script> 
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> 

这里的帮助将不胜感激。

必须使用原生的Android包装使用煎茶建立一个Android应用程序,但已运行到它周围的问题没有找到应用程序图标,这我不知道在何处应该放置在交替尝试。

+1

不能说有关的特定错误,但这种联系可能会有所帮助http://android.amolgupta.in/2011/07/hybrid-applications-using-phonegap-and.html – 2011-12-18 16:05:30

+1

谢谢,想通了这一点。有一个脚本标签出现问题,因为sencha-touch库没有被加载。现在工作。 – baradas 2011-12-18 18:15:49

+0

如果您解决了问题,请关闭/回答问题... – Alex 2012-05-25 08:40:43

回答

0

我的脚本标签存在问题,因此我正面临这个问题。

相关问题