6

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.

Community
  • 1
  • 1
SeekingAlpha
  • 7,489
  • 12
  • 35
  • 44

2 Answers2

11

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.+'
SMR
  • 6,628
  • 2
  • 35
  • 56
2

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:+'
Jai
  • 486
  • 1
  • 8
  • 21