我尝试使用感应器cmd 4.0从我的感应器触摸项目中生成android apk,
不幸的是,我遇到了使用非零错误代码退出的错误stbuild :3,因为我在其sencha的官方站点或internet上没有任何意义,所以我计划使用Sencha cmd 5.0.1.231,正如您在Sencha Cmd 5.0中所知道的,stbuild不再受支持。
我已经卸载并下载了Sencha Cmd v5.0.1.231、sencha sencha Touch2.4.0-商业,并安装了ruby 1.9.3p545和安装了sass和罗盘E 215和E 116antE 217和安装了E 118JDK1.7E 219并在我的windows 7 64位计算机上成功设置了路径。
PS :我面临的问题是我无法使用sencha cmd从我的sencha触摸项目中生成android apk文件,实际上它不会传递任何错误。
步骤我尝试过
2)然后执行以下命令来刷新应用程序sencha应用程序刷新
4)然后我使用传统的keytool命令创建了keystore
5)现在我已经更新了packager.json的内容,并在那里输入了所需的信息,如证书路径及其密码、别名和android路径。
6)之后,我执行了以下命令sencha应用程序构建本机
此命令不会引发任何错误,但我没有在项目文件夹中找到apk文件。
全标准跟踪:
D:\myapp>sencha app build native
Sencha Cmd v5.0.1.231
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[INF] Concatenating output to file D:myapp\build\temp\production\App\sencha-compiler\cmd-packages.js
[INF] writing content to D:myapp\bootstrap.js
[INF] appending content to D:myapp\bootstrap.js
[INF] appending content to D:myapp\bootstrap.js
[INF] appending content to D:myapp\bootstrap.js
[INF] Appending content to D:myapp/bootstrap.json
[INF] Concatenating output to file D:\myapp\native\app.js
[INF] merging resources into D:\myapp\native\resources
[INF] merged 0 resources into D:\myapp\resources
[INF] merging resources into D:\myapp\native\resources
[INF] merged 0 resources into D:\myapp\native\resources
[INF] executing compass using system installed ruby runtime
identical ../css/app.css
[INF] Copying page resources to D:\myapp\native
[INF] Generating file deltas to D:\myapp/deltas
[INF] Writing content to D:\myapp\native/app.json
[INF] Writing content to D:\myapp\native/microloader.js
[INF] Appending content to D:\myapp/microloader.js
[INF] Building output markup to D:\myapp\native/index.html
[INF] Writing content to D:\myapp\native/index.html
[INF] generating cache manifest to D:\myapp\native/cache.appcache
D:\myapp>我的问题是,Cordova或Phonegap对于使用sencha cmd 5从感应器触摸生成android apk是强制性的,因为我没有使用Cordova或Phonegap从使用sencha cmd 4的示例Kicthensink sencha触摸项目中生成android apk。正如您在前面的问题Unable to generate android skeleton project from sencha touch because of stbuild exited with non-zero code : 7中所看到的。
发布于 2014-09-10 10:05:48
我终于解决了这个问题。
在Sencha Cmd5.x版本中,不支持生成apk,我们必须使用phonegap或cordova。
她在自己的博客 http://www.loiane.com/2013/06/integrando-sencha-touch-com-phonegap-hello-world/中明确表示,我们需要发布sencha应用程序构建,而不是sencha应用程序构建原生。
之后,您可以在您的sencha项目中的build目录下看到 project 文件夹,在 app 文件夹(即应用程序名称,在我的例子中是app)中,复制文件并粘贴中的 www E 216目录下的E 117资产E 218目录中的E 119电话间隔项目E 220、E 121记住您不应该从www目录中删除cordova.js文件。
然后运行您的Phonegap应用程序。
https://stackoverflow.com/questions/25758791
复制相似问题