Search code examples
androidmavenandroid-support-librarydrawerlayout

DrawerLayout is missing in Android Support Maven repository


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?


Solution

  • 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.