如何将MobileFirst CLI应用程序部署到Android设备? [英] How to deploy MobileFirst CLI application to an android device?
问题描述
我正在使用MobileFirst CLI 7.1。我想将我的MobileFirst CLI应用程序部署到Android设备。我怎样才能做到这一点?
I am using MobileFirst CLI 7.1. I want to deploy my MobileFirst CLI application to an android device. How can I do that?
在工作室中,当我右键单击> Build and depoly for all environment时,我用它来获取投影。
In studio i use to get a projected generated when I right click > Build and depoly for all environments.
此外,我想知道如何定位远程服务器。 (在Studio中我们可以选择部署到远程环境。)
Also I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)
我们是否有任何命令来实现上述两个?
Do we have any commands for achieving the above two?
推荐答案
在工作室中,当我右键单击> Build and depoly for all environment时,我用它来获取投影。
In studio i use to get a projected generated when I right click > Build and depoly for all environments.
您需要安装谷歌的ADT工具并从命令行执行命令,或将项目导入谷歌的Android Studio IDE。
You need to have google's ADT tools installed and execute the commands from the command-line, or import the project into Google's Android Studio IDE.
此外,我想知道如何定位远程服务器。 (在Studio中,我们可以选择部署到远程环境。)
Also I want to know how can I target remote server. (In Studio we had an option to deploy to remote environment.)
在Studio中,您没有选择部署到远程服务器。您可以选择将应用程序配置为指向远程服务器(可以在worklight.plist / wlclient.properties文件中编辑的属性)。
In the Studio you did not have the option to "deploy to a remote server". You had the option to configure the application to point to a remote server (the properties you can edit in the worklight.plist/wlclient.properties file).
CLI中不存在此功能。构建项目后,如果您希望它指向不同的服务器,请编辑所述文件中的属性以指向远程服务器。
This feature does not exist in the CLI. After building the project, in case you want it to point to a different server, edit the properties in said file(s) to point to the remote server.
这篇关于如何将MobileFirst CLI应用程序部署到Android设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!