Skip to content

Instantly share code, notes, and snippets.

@vxhviet
Last active April 26, 2016 04:26
Show Gist options
  • Save vxhviet/34e0e6c2d5bb59edc85e916f3256bd2b to your computer and use it in GitHub Desktop.
Save vxhviet/34e0e6c2d5bb59edc85e916f3256bd2b to your computer and use it in GitHub Desktop.
How to add external AAR library to Android Studio

Question: How to add external AAR library to Android Studio?

Answer:

This work on Android Studio 2.0

File > New > New Module > Import .JAR/.AAR Package > Choose your AAR file.

Add dependency:

-Right click app choose Open Module Settings

-In Modules, click app > Depemdencies > click the + sign > Module dependency > choose your newly created library module.

-Sync Gradle.

Method 2 Blog (untested).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment