未能使用Sencha Touch为android打包一个非常简单的本机应用程序
我正在学习如何使用Sencha Touch开发应用程序。当我尝试打包一个非常简单的应用程序在android emulator上运行时,我失败了。屏幕上的点卡住了,一直在闪烁 我所做的只是使用Secha CMD创建一个新项目,然后用以下内容替换app.js的内容:未能使用Sencha Touch为android打包一个非常简单的本机应用程序,android,extjs,touch,Android,Extjs,Touch,我正在学习如何使用Sencha Touch开发应用程序。当我尝试打包一个非常简单的应用程序在android emulator上运行时,我失败了。屏幕上的点卡住了,一直在闪烁 我所做的只是使用Secha CMD创建一个新项目,然后用以下内容替换app.js的内容: Ext.application({ name: 'Sencha', launch: function() { Ext.create("Ext.tab.Panel", { fullscreen: true
Ext.application({
name: 'Sencha',
launch: function() {
Ext.create("Ext.tab.Panel", {
fullscreen: true,
tabBarPosition: 'bottom',
items: [
{
title: 'Home',
iconCls: 'home',
html: [
'<img src="http://staging.sencha.com/img/sencha.png" />',
'<h1>Welcome to Sencha Touch</h1>',
"<p>You're creating the Getting Started app. This demonstrates how ",
"to use tabs, lists, and forms to create a simple app</p>",
'<h2>Sencha Touch</h2>'
].join("")
}
]
});
}
});
Ext.application({
名称:"Sencha",,
启动:函数(){
Ext.create(“Ext.tab.Panel”{
全屏:对,
tabBarPosition:'底部',
项目:[
{
标题:"家",,
iconCls:“家”,
html:[
'',
“欢迎来到Sencha Touch”,
“您正在创建入门应用程序。这演示了如何”,
“要使用选项卡、列表和表单创建简单的应用程序”,
“Sencha Touch”
].join(“”)
}
]
});
}
});
我使用的是senchacmdv4.0.0.203、ruby 1.9.3p448和windows8
当我使用IIS作为web服务器在PC上测试时,我的应用程序运行良好,没有错误
我在这里发现了一条类似的线索:
但是这篇文章中提到的解决方案对我来说不起作用 您必须允许访问
config.xml中的外部域:
<access origin="*"/>