我正在尝试使用以下tutorial从sencha touch应用程序生成apk文件,并在提供以下命令sencha app SampApp generate <configTemplate.json>
时显示以下错误。
C:\Users\****\Downloads\sencha-touch-2.2.1-commercial\touch-2.2.1>sencha app
SampApp generate <configTemplate.json>
The syntax of the command is incorrect.
请告诉我我做错了什么?
编辑新错误
现在我生成了config.json。
但是当我编辑配置文件并运行命令sencha app package configFile.json
时,它会给出错误
[ERR] Unknown command: "configFile.json"
修改2
抱歉,我错了,我错误地使用了generate命令来生成config.json 在这里,我的实际错误来了
C:\Users\krishna\Downloads\sencha-touch-2.2.1-commercial\touch-2.2.1>sencha -d a
pp package config.json
[DBG] Loading configuration from C:\Users\krishna\Downloads\sencha-touch-2.2.1-c
ommercial\touch-2.2.1
[DBG] Loading build environment from directory C:\Users\krishna\Downloads\sencha
-touch-2.2.1-commercial\touch-2.2.1
[DBG] Detecting framework plugin
[DBG] resolving framework config overrides for 'touch'
[DBG] Detected framework version 2.2.1.480
[DBG] failed to detect C:\Users\krishna\Downloads\sencha-touch-2.2.1-commercial\
touch-2.2.1\cmd\plugin.xml
[DBG] defaulting to 'current' plugin
[DBG] using framework plugin located at 'C:\Users\krishna\bin\Sencha\Cmd\3.1.2.3
42\plugins\touch\current'
Sencha Cmd v3.1.2.342
[DBG] Loading CommandProviders
[DBG] Scanning for extensions in C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\exten
sions
[DBG] loading extension from C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extension
s\sencha-compass
[DBG] Loaded extension sencha-compass
[DBG] loading extension from C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extension
s\sencha-io
[DBG] Loaded extension sencha-io
[DBG] Scanning extensions directory C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\ex
tensions\sencha-compass for extensions
[DBG] Located C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensions\sencha-compas
s\sencha-compass.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-compass\sencha-compass.jar
[DBG] get value lib/slf4j-api-1.6.6.jar lib/ant-1.8.4.jar lib/ant-launcher-1.8.4
.jar for manifest class path
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-compass\lib\slf4j-api-1.6.6.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-compass\lib\ant-1.8.4.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-compass\lib\ant-launcher-1.8.4.jar
[DBG] Add extension classpath entry 'sencha-compass' : jar:file:/C:/Users/krishn
a/bin/Sencha/Cmd/3.1.2.342/extensions/sencha-compass/sencha-compass.jar!/
[DBG] Add extension classpath entry 'sencha-compass' : jar:file:/C:/Users/krishn
a/bin/Sencha/Cmd/3.1.2.342/extensions/sencha-compass/lib/slf4j-api-1.6.6.jar!/
[DBG] Add extension classpath entry 'sencha-compass' : jar:file:/C:/Users/krishn
a/bin/Sencha/Cmd/3.1.2.342/extensions/sencha-compass/lib/ant-1.8.4.jar!/
[DBG] Add extension classpath entry 'sencha-compass' : jar:file:/C:/Users/krishn
a/bin/Sencha/Cmd/3.1.2.342/extensions/sencha-compass/lib/ant-launcher-1.8.4.jar!
/
[DBG] Scanning extensions directory C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\ex
tensions\sencha-io for extensions
[DBG] Located C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensions\sencha-io\sen
cha-io.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-io\sencha-io.jar
[DBG] get value lib/httpclient-4.2.1.jar lib/commons-logging-1.1.1.jar lib/commo
ns-codec-1.6.jar lib/httpclient-cache-4.2.1.jar lib/httpcore-4.2.1.jar lib/httpm
ime-4.2.1.jar lib/slf4j-api-1.6.6.jar lib/gson-2.2.1.jar for manifest class path
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-io\lib\httpclient-4.2.1.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-io\lib\commons-logging-1.1.1.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-io\lib\commons-codec-1.6.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-io\lib\httpclient-cache-4.2.1.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-io\lib\httpcore-4.2.1.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-io\lib\httpmime-4.2.1.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-io\lib\slf4j-api-1.6.6.jar
[DBG] loading manifest for jar C:\Users\krishna\bin\Sencha\Cmd\3.1.2.342\extensi
ons\sencha-io\lib\gson-2.2.1.jar
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/krishna/bin
/Sencha/Cmd/3.1.2.342/extensions/sencha-io/sencha-io.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/krishna/bin
/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/httpclient-4.2.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/krishna/bin
/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/commons-logging-1.1.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/krishna/bin
/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/commons-codec-1.6.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/krishna/bin
/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/httpclient-cache-4.2.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/krishna/bin
/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/httpcore-4.2.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/krishna/bin
/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/httpmime-4.2.1.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/krishna/bin
/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/slf4j-api-1.6.6.jar!/
[DBG] Add extension classpath entry 'sencha-io' : jar:file:/C:/Users/krishna/bin
/Sencha/Cmd/3.1.2.342/extensions/sencha-io/lib/gson-2.2.1.jar!/
[ERR] Unknown command: "config.json"
at com.sencha.cli.Commands.findCommand(Commands.java:79)
at com.sencha.cli.Commands.dispatch(Commands.java:59)
at com.sencha.cli.Commands.dispatch(Commands.java:62)
at com.sencha.cli.Commands.dispatch(Commands.java:62)
at com.sencha.command.Sencha.dispatch(Sencha.java:78)
at com.sencha.command.Sencha.main(Sencha.java:141)
答案 0 :(得分:1)
你在解释时误解了package
。您实际上应该使用package
一词,而不是应用包的名称。
sencha app package generate configTemplate.json