Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/184.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未能使用Sencha Touch为android打包一个非常简单的本机应用程序_Android_Extjs_Touch - Fatal编程技术网

未能使用Sencha Touch为android打包一个非常简单的本机应用程序

未能使用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

我正在学习如何使用Sencha Touch开发应用程序。当我尝试打包一个非常简单的应用程序在android emulator上运行时,我失败了。屏幕上的点卡住了,一直在闪烁

我所做的只是使用Secha CMD创建一个新项目,然后用以下内容替换app.js的内容:

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="*"/>