简体   繁体   English

可以在Android中使用Maven代替Gradle吗?

[英]Is it possible to use Maven instead of Gradle in Android?

I want to remove gradle completely from my app, and start using Maven. 我想从我的应用程序中完全删除gradle,然后开始使用Maven。 I know that Gradle is the official and default way, but due to some restrictions, I need Maven. 我知道Gradle是官方的默认方式,但是由于某些限制,我需要Maven。 I have investigated but did not come up with a solution. 我已经调查过,但没有提出解决方案。 Is is possible? 有可能吗? How? 怎么样?

In case that it is possible, how can you set the different parameters? 如果可能的话,如何设置不同的参数? eg multiDexEnable, compileSdkVersion, buildTypes... 例如multiDexEnable,compileSdkVersion,buildTypes ...

You can use the Android Maven Plugin 您可以使用Android Maven插件

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. Android Maven插件用于为Android操作系统构建应用程序,并使用Apache Maven以AAR和旧版APKLIB格式构建用于这些工作的库。

It seems quite updated and there's also a GitHub page. 似乎已经更新,并且还有一个GitHub页面。 Beside, some examples will help you setup your project. 此外,一些示例将帮助您设置项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM