Sencha Touch Packaging to Android Error

时间:2012-12-26 14:33:33

标签: android sencha-touch package sencha-command

我无法在Windows中使用Sencha Cmd v3.0.0.250将我的应用程序打包到android。 我运行命令sencha package build packager.json并给出了这个错误:

[ERR]       
Created directory C:\Users\Wesker\Desktop\Tiempo\src\com\sencha\Tiempo
Added file C:\Users\Wesker\Desktop\Tiempo\src\com\sencha\Tiempo\STActivity.java
Created directory C:\Users\Wesker\Desktop\Tiempo\res
Created directory C:\Users\Wesker\Desktop\Tiempo\bin
Created directory C:\Users\Wesker\Desktop\Tiempo\libs
Created directory C:\Users\Wesker\Desktop\Tiempo\res\values
Added file C:\Users\Wesker\Desktop\Tiempo\res\values\strings.xml
Created directory C:\Users\Wesker\Desktop\Tiempo\res\layout
Added file C:\Users\Wesker\Desktop\Tiempo\res\layout\main.xml
Added file C:\Users\Wesker\Desktop\Tiempo\AndroidManifest.xml
Added file C:\Users\Wesker\Desktop\Tiempo\build.xml
Added file C:\Users\Wesker\Desktop\Tiempo\proguard-project.txt
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
""C:/Android\tools\android" create project --target android-10 --name Tiempo --activity STActivity --path "C:/Users/Wesker/Desktop/Tiempo\/" --package com.sencha.Tiempo"
Could not run ant with error: 1
Failed to package application

[ERR]       stbuild exited with non-zero code : 7

这是我的json文件:

{
"applicationName":"Tiempo",
"applicationId":"com.sencha.Tiempo",
"bundleSeedId":"KPXFEPZ6EF",
"versionString":"1.0",
"versionCode":"1",
"icon": {
    "57":"resources/icons/Icon.png",
    "72":"resources/icons/Icon~ipad.png",
    "114":"resources/icons/Icon@2x.png",
    "144":"resources/icons/Icon~ipad@2x.png"
},
"inputPath":"C:/Users/Wesker/Documents/Tiempo/app",
"outputPath":"C:/Users/Wesker/Desktop/Tiempo",
"configuration":"Debug",
"platform":"Android",
"deviceType":"Universal",
"certificatePath":"C:/Users/Wesker/Documents/Tiempo/keyTiempo.keystore",
"certificateAlias": "tiempo",
"certificatePassword":"123456",
"provisionProfile":"",
"sdkPath":"C:/Android",
"androidAPILevel":"10",
"permissions":[
    "INTERNET",
    "ACCESS_NETWORK_STATE",
    "CAMERA",
    "VIBRATE",
    "ACCESS_FINE_LOCATION",
    "ACCESS_COARSE_LOCATION",
    "CALL_PHONE"
],
"orientations": [
    "portrait",
    "landscapeLeft",
    "landscapeRight",
    "portraitUpsideDown"
]

}

我不知道为什么它试图执行C:\ Program。谢谢你的帮助。

1 个答案:

答案 0 :(得分:2)

我必须将所有工具从“Program Files”目录中删除。意思是我把android,sencha-cmd等放在c:\上,而不是放在c:\ Program(NOT_working_SPACE_here)文件中。