简体   繁体   中英

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

I successfully created the GS project .. sencha generate app GS ../GS

Now I am trying to create an .apk file, so I install on my Android handset for testing.

Problem : When I type in the following c:\\sencha-touch-2> sencha package build c:\\GS\\packager.json

Nothing happerns and the cursor just goes to the command prompt

Below is my packager.json file.

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

if this doesn't work:

  • do you habe the latest Sencha-Cmd installed?
  • What sencha touch are you using 2.0.1? (I didn't find any info on android packaging for 2.1.1)

To build a sencha touch application, make sure you update your packager.json file in the sencha touch project with the following attributes:

  • "applicationId":"com.test.projectname",(package format to be followed here)

  • "platform":"Android", ( if you are building for android device)

  • "platform":"AndroidEmulator", ( if you are building for android emulator)

  • "certificatePath":"../", (path to your certificate - can use the key which is used to sign android application)

  • "certificatePassword":" ** ", (password to your key)

  • "sdkPath":"../../../../../../android-sdk_r16-windows/android-sdk-windows", (path to android sdk if you are building for android)

  • 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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