Reputation: 1806
Does Android Studio seamlessly support Maven projects?
Or do you have to download plugins and jump through hurdles (a la Eclipse)? Or can you use Maven at all?
Upvotes: 19
Views: 23696
Reputation: 6683
Starting from Android Studio version 0.8.14 and newer there is no default maven runner. Nevertheless you are still able to use AndroidStudio with maven projects. You just need to make sure AndroidStudio have a path to Maven - on Mac Android Studio Preferences -> Maven -> Maven home directory. After set up simply click on File -> Open... and select a pom file of your android project. To make your life simpler when running a maven with different setup of goals and profiles I suggest to install Android Studio Plugin called Maven Runner which will give you ability to create MVN configuration with autocomplete feature for all goals and profiles from you pom file.
Upvotes: 3
Reputation: 41240
Tried using the current version 0.5.3 of Android Studio on an existing project I had using Eclipse. The project imports correctly and generates the necessary APKs.
However, you have to create a new Run configuration manually. It's not like in Eclipse where you can right-click and Run... on the project.
Upvotes: 0
Reputation: 1080
I heard in the keynote that, yes, it has support for subversion, git, maven, etc.
And it's based on IDEA, which had support for maven bundled for quite a long time.
http://www.jetbrains.com/idea/features/ant_maven.html
Upvotes: 7
Reputation: 5948
Here is the "import project" screen shot. Note the "Maven project file (pom.xml)" at the top. Android Studio is based on IDEA, which supports Maven natively.
Upvotes: 6