我对sencha的发展还很新。我安装了JDK,Ant,Compass,Sencha Cmd,Sencha SDK,XCode,ios-simulator和Cordova。而且我相信我已经正确设置了所有路径。
我使用sencha cmd生成了一个app(Sample01)。我使用“sencha cordova init com.snehca.Sample01 Sample01”初始化了cordova。如果我使用“sencha app build native”(没有运行选项)构建,则应用程序将成功编译。
但是,如果我执行“sencha app build -run native”,它会抛出错误,如下所示:
Sencha Cmd v5.0.0.160
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/sencha-compiler/cmd-packages.js
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__core.files
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__manifest
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Appending concatenated output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Appending concatenated output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Appending concatenated output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__class.metadata
[INF] Concatenating output to file /Sencha/Projects/Sample01/build/temp/native/Sample01/__override.files
[INF] Appending content to /Sencha/Projects/Sample01/bootstrap.json
[INF] Compressing data with YuiJavascriptCompressor
[INF] Concatenating output to file /Sencha/Projects/Sample01/cordova/www/app.js
[INF] merging resources into /Sencha/Projects/Sample01/cordova/www/resources
[INF] merged 0 resources into /Sencha/Projects/Sample01/cordova/www/resources
[INF] merging resources into /Sencha/Projects/Sample01/cordova/www
[INF] merged 0 resources into /Sencha/Projects/Sample01/cordova/www
[INF] executing compass using system installed ruby runtime
[INF] Copying page resources to /Sencha/Projects/Sample01/cordova/www
[INF] Writing content to /Sencha/Projects/Sample01/cordova/www/app.json
[INF] Writing content to /Sencha/Projects/Sample01/cordova/www/microloader.js
[INF] Appending content to /Sencha/Projects/Sample01/cordova/www/microloader.js
[INF] Building output markup to /Sencha/Projects/Sample01/cordova/www/index.html
[ERR] The following error occurred while executing this line:
/Sencha/Projects/Sample01/.sencha/app/build-impl.xml:427: The following error occurred while executing this line:
/Sencha/Projects/Sample01/.sencha/app/cordova-impl.xml:108: The following error occurred while executing this line:
jar:file:/Users/jpulakhandam/bin/Sencha/Cmd/5.0.0.160/sencha.jar!/com/sencha/ant/antlib.xml:608: shellscript returned: 1
答案 0 :(得分:0)
在我的环境中修复了Android SDK构建工具的问题,在更新之前我收到了相同的错误和我的Android SDK Build Tools rev。是19.0.3然后我更新到Android SDK Build Tools rev 20并解决了问题。