在Android上做工作室Ant构建 [英] Doing an Ant Build on Android Studio

查看:177
本文介绍了在Android上做工作室Ant构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android版是否支持工作室建立蚂蚁?

Does Android Studio support Ant builds?

我想运行一个之前编译Ant目标。

I want to run a before-compilation Ant target.

Android的工作室是新的,所以看起来可能它并不赞成摇篮的支持。

Android Studio is new, so it seems possible it's not supported in favor of Gradle.

推荐答案

如此看来,工作室的并不意味着完全支持建立的Ant (见注释)

So it seems that Studio isn't meant to fully support Ant builds (see comments)

这工作得很好,我到现在为止,但我认为是有特定的配置是它不会正常工作。

It worked fine for me until now, but I suppose there are specific configuration were it won't work as well.

InteliJ IDEA 13 EAP拥有所有Studio的功能,并支持蚂蚁。

我也想指出,摇篮还支持pre-构建任务,所以你可能要考虑切换到摇篮。

I would also like to point out that Gradle also support pre-build tasks, so you might want to consider switching to Gradle.

对于那些谁去会做出这样的选择,您可以从Eclipse项目(注:我没有测试过,但它应该比你分钟不到来尝试一下,看看它是否适合你的项目)

For those who will go will make that choice, you can generate a Gradle buil from your Eclipse project (Note : I haven't tested it, but it should take you less than minutes to try it out and see if it works for your project).

[原答复]

Android Studio中明确支持的Ant构建。我一直在使用它在我的公司的项目,它工作正常。

Android Studio definitively supports Ant builds. I have been using it on my company's project and it works fine.

但是,你是正确的,它强烈推荐摇篮,使之成为默认的编译器与Android Studio创建的所有新项目(但你实际上可以切换到Ant)。

But you are right that it strongly recommend Gradle, making it the default compiler for all new project created with Android Studio (but you could actually switch back to Ant).

最后,JoeHz指出,Android的Studio是基于的IntelliJ的开源版本,所以你也可以去下载这个版本(这是目前比Android工作室更稳定)。

Finally, as JoeHz pointed out, Android Studio is based on the open source version of IntelliJ, so you can also go download this version (which is currently much more stable than Android Studio).

这篇关于在Android上做工作室Ant构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆