Reputation: 65
i'm building my projects via maven and would like to use the new DrawerLayout API from Android. As typical this new feature is only available in the Support Library.
Unfortunately the DrawerLayout is missing in the Central Repository (http://search.maven.org/#artifactdetails%7Ccom.google.android%7Csupport-v4%7Cr7%7Cjar).
Of course i could download the correct jar-file and use this as dependency, but it's not the common way. Is there another way to include the newest version of the Support Library via maven?
Upvotes: 1
Views: 1458
Reputation: 684
There is another option, here is a github base maven repo that you can use to include v4 r18 of the support tools.
https://stackoverflow.com/a/18787121/2776544
Upvotes: 0
Reputation: 1323
I added the support library v4 r18 by using maven-android-sdk-deployer
https://github.com/mosabua/maven-android-sdk-deployer
Clone the git
git clone https://github.com/mosabua/maven-android-sdk-deployer.git
and see the instructions on how to install and configure in README file there.
Just using "mvn install:install-file" didn't work for me.
Upvotes: 0
Reputation: 23442
The latest release of the support library in Maven Central is r7; DrawerLayout was introduced in r13.
One option is to use the jar included with the SDK and install it to your local maven repo. Then you can reference it as a maven dependency.
Upvotes: 4