SeekingAlpha
SeekingAlpha

Reputation: 7817

add android-support-v13.jar in Android Studio

I have been trying to add android-support-v13 in Android Studio 1.0.2

I have followed the steps here but I still get a build fail. Has anyone successfully managed to add android-support-v13.jar into Android Studio 1.0.2?

Below is my code in my gradle file.

dependencies {
compile 'com.android.support:appcompat-v7:21.0.3'
compile fileTree(dir: 'libs',include: '*.jar')

Edit: I have installed extra support library from SDK manager and I have placed the .jar in my libs folder.

Upvotes: 6

Views: 6843

Answers (2)

SMR
SMR

Reputation: 6736

according to docs at this time:

The Gradle build script dependency identifier for this library is as follows:

com.android.support:support-v13:18.0.0

lets hope that the docs are updated.

for the latest you should use:

compile 'com.android.support:support-v13:21.0.+'

Upvotes: 11

Jai
Jai

Reputation: 486

same problem android studio 1.0.2 i solve that below

compile 'com.android.support:appcompat-v7:21.0.1'
compile 'com.android.support:appcompat-v7:+'

Upvotes: 2

Related Questions