简体   繁体   中英

unable to package app for android using sencha touch 2

I am trying to package the demo example (Tabs) for andrdoi.I generated the certificate file using keytool and the alias name is (alias_name). When i try to package using command :sencha package c:\\xampp\\htdocs\\sench\\ss.json.I am getting error "JSON format error , please verify syntax". How can i fix this error.

My json file :

{
    "applicationName":"test app",
    "applicationId":"com.sench.test",
    "versionString":"1.0",
    "iconName":"icon.png",
    "inputPath":"C:\xampp\htdocs\sench\",
    "outputPath":"c:\output",
    "configuration":"Debug",
    "platform":"AndroidEmulator",
    "certificatePath":"C:\my-release-key.keystore",
    "certificateAlias":"alias_name",
    "sdkPath":"C:\Program Files\Android\android-sdk",
    "androidAPILevel":"7",
    "orientations": [
        "portrait",
        "landscapeLeft",
        "landscapeRight",
        "portraitUpsideDown"
    ]
}

You have used \\ in your JSON file and in JSON/JavaScript that means you want to escape something. To get around this, simply add \\ again so each time you use backslash, it knows you do not want to escape anything.

"sdkPath":"C:\\Program Files\\Android\\android-sdk"

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