2013-07-24 136 views
0

我試圖從sencha touch應用程序生成apk文件,使用以下tutorial並且它給出以下命令sencha app SampApp generate <configTemplate.json>它顯示以下錯誤。sencha:無法生成apk

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

對不起,我錯了,我曾誤用於生成命令生成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) 

回答

1

你誤解package他們解釋。您實際上應該使用package這個詞,而不是應用程序包的名稱。

sencha app package generate configTemplate.json 
+0

三江源,它的工作,現在新的錯誤是在生成APK – krishna

+0

您應該使用什麼我打字,'煎茶的應用程序包生成configTemplate.json'正在添加。 'generate'是需要運行的命令,'configTemplate.json'是它將創建的文件。 ''''是佔位符,建議你應該把你的文件名放在那裏,而不用'<>' – kevhender

+0

我甚至試過這個命令sencha app package generate configTemplate.json它也說同樣的錯誤 – krishna

相關問題