Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I want to remove gradle completely from my app, and start using Maven. I know that Gradle is the official and default way, but due to some restrictions, I need 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? e.g. multiDexEnable, compileSdkVersion, buildTypes...

like image 994
Adrián García Campos Avatar asked Mar 27 '18 11:03

Adrián García Campos


1 Answers

You can use the 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.

It seems quite updated and there's also a GitHub page. Beside, some examples will help you setup your project.

like image 77
ToYonos Avatar answered Oct 17 '22 03:10

ToYonos