安卓和蚂蚁金服

发布于 2024-10-06 20:46:45 字数 69 浏览 0 评论 0原文

我尝试过从头开始使用 Ant 编译 Java 项目。安卓也可以吗?如果我只有源代码,我可以编译该项目吗?如果是这样,怎么办?

I have tried my hands on compiling a Java project with Ant from scratch. Is it possible in Android too? If I have only the source code, can I compile the project? If so, how?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

缘字诀 2024-10-13 20:46:45

是的。

请阅读 Android 开发者网站了解更多详细信息。

Yes, it is.

Read the android developer website for more details.

思念满溢 2024-10-13 20:46:45

有几点需要记住:

  1. Android 支持 ant 构建脚本、开发者网站和提供的工具,向您展示如何轻松地做到这一点。
  2. 但是,如果您想使用一组脚本支持不同版本的 android,最好的方法是编写自定义 ant 脚本(一组,将为所有版本编译),例如 SDK Tools v5、v6、v7 和 v8 all ant 的构建方式有所不同。这需要一些努力和计划。

There are a few things to keep in mind:

  1. Android supports ant build scripts, the developer website, and the tools provided, show you how to do this easily.
  2. But if you want to support different versions of android with a single set of scripts the best way is to write custom ant scripts (a single set, that will compile for all versions) for this as SDK Tools v5, v6, v7 and v8 all do ant builds differently. This requires some effort and planning.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文