简体   繁体   English

sencha touch package build - 只显示命令提示符不显示任何错误

[英]sencha touch package build - just displays the command prompt does not display any errors

I have been working on this problem for days, and I cannot work it out.. please help ? 我已经解决了这个问题好几天了,我无法解决这个问题..请帮忙吗?

I followed the getting started tutorial on http://docs.sencha.com/touch/2-0/#!/guide/getting_started 我按照http://docs.sencha.com/touch/2-0/#!/guide/getting_started上的入门教程进行了操作

I successfully created the GS project .. sencha generate app GS ../GS 我成功创建了GS项目.. sencha生成应用程序GS ../GS

Now I am trying to create an .apk file, so I install on my Android handset for testing. 现在我正在尝试创建一个.apk文件,所以我安装在我的Android手机上进行测试。

Problem : When I type in the following c:\\sencha-touch-2> sencha package build c:\\GS\\packager.json 问题:当我输入以下c:\\ sencha-touch-2> sencha包build c:\\ GS \\ packager.json

Nothing happerns and the cursor just goes to the command prompt 没有happerns,光标只是进入命令提示符

Below is my packager.json file. 下面是我的packager.json文件。

If anybody had any ideas or can help , I would really appreciate it 如果有人有任何想法或可以提供帮助,我将非常感激

{
    "applicationName":"GS",
    "applicationId":"com.steve.GS",
    "versionString":"1.0",
    "iconName":"Icon.png",
    "inputPath":"c:\GS",
    "outputPath":"c:\Build",
    "configuration":"Debug",
    "platform":"Android",
    "deviceType":"Universal",
    "certificatePath":"c:\debug.keystore",
    "certificateAlias":"",
    "sdkPath":"c:\Program Files\Android\android-sdk",
    "androidAPILevel":"15",
    "orientations": [
        "portrait",
        "landscapeLeft",
        "landscapeRight",
        "portraitUpsideDown"
    ]
}

Try running "sencha package build packager.json" in c:\\GS 尝试在c:\\ GS中运行“sencha package build packager.json”

if this doesn't work: 如果这不起作用:

  • do you habe the latest Sencha-Cmd installed? 你安装了最新的Sencha-Cmd吗?
  • What sencha touch are you using 2.0.1? 你使用2.0.1有什么样的感觉? (I didn't find any info on android packaging for 2.1.1) (我没有在2.1.1的android包装上找到任何信息)

To build a sencha touch application, make sure you update your packager.json file in the sencha touch project with the following attributes: 要构建sencha touch应用程序,请确保使用以下属性更新sencha touch项目中的packager.json文件:

  • "applicationId":"com.test.projectname",(package format to be followed here) “applicationId”:“com.test.projectname”,(这里要包含的包格式)

  • "platform":"Android", ( if you are building for android device) “平台”:“Android”,(如果您正在为Android设备构建)

  • "platform":"AndroidEmulator", ( if you are building for android emulator) “平台”:“AndroidEmulator”,(如果您正在为Android模拟器构建)

  • "certificatePath":"../", (path to your certificate - can use the key which is used to sign android application) “certificatePath”:“../”,(证书的路径 - 可以使用用于签署Android应用程序的密钥)

  • "certificatePassword":" ** ", (password to your key) “certificatePassword”:“ ** ”,(密钥到你的密钥)

  • "sdkPath":"../../../../../../android-sdk_r16-windows/android-sdk-windows", (path to android sdk if you are building for android) “sdkPath”:“../../../../../../ android-sdk_r16-windows / android-sdk-windows”,(如果你正在构建android的android sdk的路径)

  • Ensure that you are giving a relative path from the packager.json folder unlike in the question where the physical location to the sdk and key is provided 确保您从packager.json文件夹中提供相对路径,这与提供sdk和密钥的物理位置的问题不同

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM