Android studio: Error: module version com.android.support:support-v13:13.0.0 depends on libraries but is not the library itself
I am trying to add this lib ( https://github.com/daimajia/AndroidImageSlider ) to my project. I added the compile library to my gradle file, but I get the error:
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion '20.0.0'
defaultConfig {
applicationId "com.pp.myapp"
minSdkVersion 16
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.2'
compile 'com.iangclifton.android:floatlabel:1.0'
compile 'com.google.android.gms:play-services:5.0.89'
compile "com.android.support:support-v4:+"
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.0.9@aar'
}
And I am getting this error:
Error:Module version com.android.support:support-v13:13.0.0 depends on libraries but is not a library itself
+3
source to share
2 answers
I got the same error with the oauth library. This was fixed after a while when, tired of introducing new changes to build.gradle like changing support libraries, I discarded the changes in the file (via Sourcetree). It syncs and locks automatically.
(Android Studio) It's kind of magic.
0
source to share