简体   繁体   English

是否可以在单个项目中同时使用Android Eclipse插件和Android命令行工具?

[英]Is it possible to use both the Android Eclipse plugin and the Android command-line tools on a single project?

I'm on a team with some members who like to the use the Android Eclipse plugin and some who like to use other editors and therefore use the Android command-line tools. 我在一个团队中,有些成员喜欢使用Android Eclipse插件,而有些成员则喜欢使用其他编辑器,因此也使用Android命令行工具。 We're about to start a project with members from both camps, so I'm wondering if it is possible to use both the Eclipse plugin and the command-line tools at the same time so that everyone can work in their preferred environment. 我们将与来自两个阵营的成员一起开始一个项目,所以我想知道是否可以同时使用Eclipse插件和命令行工具,以便每个人都可以在自己喜欢的环境中工作。

Personally, I've been using VIM and the command-line tools for Android development so far. 就个人而言,到目前为止,我一直在使用VIM和命令行工具进行Android开发。 I had a look at the Eclipse plugin to see if interoperability with the command-line tools would be possible, but it seems that the plugin does not generate any of the Ant build files that the command-line tools use. 我看了一下Eclipse插件,看是否可以与命令行工具实现互操作性,但是似乎该插件不会生成命令行工具使用的任何Ant构建文件。 Is there some way to make the Eclipse plugin generate these files? 有什么方法可以使Eclipse插件生成这些文件?

That shouldnt be a problem... 那不应该是个问题...

Eclipse builds the app and produces a .apk file like on the fly where if you want to use the command line you have to follow a different procedure.. Eclipse会构建该应用程序并生成一个.apk文件,就像在运行中那样。如果要使用命令行,则必须遵循不同的过程。

Read this: http://developer.android.com/guide/developing/building/index.html and in particular 请阅读以下内容: http : //developer.android.com/guide/developing/building/index.html尤其是

"if you are developing in a non-Eclipse environment, you can build your project with the generated build.xml Ant file that is in the project directory. The Ant file calls targets that automatically call the build tools for you." “如果在非Eclipse环境中进行开发,则可以使用项目目录中生成的build.xml Ant文件来构建项目。Ant文件调用的目标将自动为您调用构建工具。”

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

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