android - 是否可以在 Android 中使用 Maven 而不是 Gradle?

标签 android maven android-studio gradle

我想从我的应用程序中完全删除 gradle,并开始使用 Maven。我知道 Gradle 是官方默认方式,但由于一些限制,我需要 Maven。我已经调查但没有提出解决方案。有可能吗?怎么办?

如果可能,如何设置不同的参数?例如multiDexEnable, compileSdkVersion, buildTypes...

最佳答案

您可以使用 Android Maven Plugin

The Android Maven Plugin is used to build applications for the Android operating system as well as build libraries to be used in these efforts in AAR and the legacy APKLIB format using Apache Maven.

它看起来很更新,还有一个 GitHub页。在旁边,一些examples将帮助您设置项目。

关于android - 是否可以在 Android 中使用 Maven 而不是 Gradle?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49511363/

相关文章:

android - 使 EditText 提示全部大写

java - 一个按钮不会出现

java - hibernate 模式 : maven dependency version information

Android Studio 2.2.2 LLDB 2.2 更新问题

android - 使用 UI 测试用例在 android studio 中运行测试

android - 使用 faSTLane 重命名移动项目?

android - Android 中的 endpointOverride 的 URI 方案不能为 null AWS S3 SDK

android - 当多个标记显示在 android map 上时 Progressdialog 卡住

java - 如何在项目中集成spring boot

java - Maven:如何获取配置文件以从父 pom 继承 dependencyManagement 标记?