Use Gradle
dependencies:
dependencies {
com.android.support:appcompat-v7:21.0.3 // current is 22.2.0
}
Some Other previous versions:
- 22.0.0
- 21.1.1
- 21.1.0
- 21.0.3
- 21.0.0
- 19.1.0
- 19.0.2
- 19.0.1
You may need to already have versions downloaded but you definitely need to download them through the Android SDK manager:
https://developer.android.com/tools/support-library/setup.html#download
See the support library docs here:
https://developer.android.com/tools/support-library/features.html
After making sure you have the correct dependencies locally, you can use the Android SDK repo with your project's pom.xml
:
<repositories>
<repository>
<id>android-support</id>
<url>file://${env.ANDROID_HOME}/extras/android/m2repository</url>
</repository>
</repositories>
......
<dependency>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
<version>19.0.1</version>
</dependency>
Source: https://stackoverflow.com/a/22602712/950427