简体   繁体   English

使用Sencha Touch 2构建器创建Android应用程序

[英]Creating an android app with Sencha Touch 2 builder

I'm attempting to build an app using the Sencha Touch 2 builder tools. 我正在尝试使用Sencha Touch 2构建器工具构建应用程序。 I have a basic app, I just want to test out creating an app so I can do it when I need to. 我有一个基本的应用程序,我只想测试创建一个应用程序,以便我可以在需要时执行。

I've got the sencha tools, the android SDK etc 我有sencha工具,android SDK等

I've got to the point when you run 你跑步的时候我已经到了这个地步

sencha package build <configfile.json>

in the command line. 在命令行中。 After several tries I've got to the point where it seems to accept the command, but it doesn't DO anything, doesn't create an app, doesn't display anything in command line, nothing. 经过几次尝试,我已经到了接受命令的地步,但它没有做任何事情,不创建应用程序,不在命令行中显示任何内容,什么也没有。

I believe I'm missing something but can't think what. 我相信我错过了一些但却无法思考的东西。

This is my config file: 这是我的配置文件:

{
"applicationName":"Test_app",
"applicationId":"com.testing.test_App",
"versionString":"1.0",
"iconName:":"resources\icons\Icon.png",
"inputPath":"\",
"outputPath":"C:\Users\rc\Android Development\Completed Apps",
"configuration":"Debug",
"platform":"Android",
"deviceType":"Universal",
"certificatePath":"C:\Users\rc\Android Development\Keystore\Test App\my-release-key.keystore",
"certificateAlias":"Test_app",
"sdkPath":"C:\Program Files\Android\android-sdk",
"orientations": [
    "portrait",
    "landscapeLeft",
    "landscapeRight",
    "portraitUpsideDown"
]
}

I managed to solve this by using the following command instead: 我设法通过使用以下命令来解决此问题:

sencha app build native

I will continue to look at the original way to understand it didn't work but this does work for now. 我将继续看原始的方式,以了解它不起作用,但这现在确实有效。

Your config file looks OK to me. 您的配置文件对我来说没问题。

It can take a very long time for that command to respond - many minutes, on my machine here. 该命令可能需要很长时间才能在我的机器上响应 - 很多分钟。 It seems to buffer all its output until it completes. 它似乎缓冲所有输出,直到它完成。 You can tell whether it really is doing something or not by watching the contents of the output path: you should see files and folders being created and destroyed. 您可以通过观察输出路径的内容来判断它是否真的在做某事:您应该看到正在创建和销毁的文件和文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM