gpt4 book ai didi

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

转载 作者:搜寻专家 更新时间:2023-11-01 08:22:20 25 4
gpt4 key购买 nike

我想从我的应用程序中完全删除 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com