1

我无法在 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。谢谢你的帮助。

4

1 回答 1

2

我不得不把所有工具都放在“程序文件”目录之外。这意味着我将 android、sencha-cmd 等放在 c:\ 上,而不是 c:\Program(NOT_working_SPACE_here) 文件中。

于 2013-01-25T08:14:12.700 回答