且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在不使用 Eclipse 的情况下创建 .apk 文件

更新时间:2022-11-03 22:36:20

我发现在没有 Eclipse 或没有任何其他 IDE 的情况下创建 .apk 的***方法是使用 maven 使用这个简洁的插件:Maven-Android-插件.它得到积极维护并且有很好的文档记录.您可以从示例开始.

The best way I have found to create .apk without eclipse, or without any other IDE is to use maven with this neat plugin : Maven-Android-Plugin. It is actively maintained and quite well documented. You can start off with a sample.

这种方法的缺点是必须更改构建过程,并且并非每个肮脏的小细节都被 IDE 隐藏.

The downside of this approach is that one has to change the build process and not every dirty little detail is hidden by the IDE.

好处是可以完全控制构建、签名、代码审计、CI 集成和 IDE 的***选择.

The upsides are a full control of the build, signing, code audits, CI integration and the free choice of the IDE.