是否可以在单个项目中同时使用 Android Eclipse 插件和 Android 命令行工具?
我所在的团队中有一些成员喜欢使用 Android Eclipse 插件,而另一些成员则喜欢使用其他编辑器,因此使用 Android 命令行工具。我们即将与两个阵营的成员一起启动一个项目,所以我想知道是否可以同时使用 Eclipse 插件和命令行工具,以便每个人都可以在自己喜欢的环境中工作。
就我个人而言,到目前为止我一直在使用 VIM 和命令行工具进行 Android 开发。我查看了 Eclipse 插件,看看是否可以与命令行工具进行互操作,但该插件似乎不会生成命令行工具使用的任何 Ant 构建文件。有没有办法让 Eclipse 插件生成这些文件?
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. 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.
Personally, I've been using VIM and the command-line tools for Android development so far. 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. Is there some way to make the Eclipse plugin generate these files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不应该是一个问题...
Eclipse 构建应用程序并生成一个 .apk 文件,如果您想使用命令行,则必须遵循不同的过程。
阅读以下内容: http://developer.android.com/guide/developing/building/index.html
特别是
“如果您在非 Eclipse 环境中进行开发,则可以使用项目目录中生成的 build.xml Ant 文件来构建项目。Ant 文件调用的目标会自动为您调用构建工具。”
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..
Read this: http://developer.android.com/guide/developing/building/index.html
and in particular
"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."