如何修复"Support-v13:19.1.0取决于库,但不是库本身"?

Sha*_*aun 15 android gradle android-support-library android-gradle-plugin

自从从0.6.2升级以来,我刚刚在Android Studio 0.8.1中推出了一个项目.

引发的错误是"错误:模块版本com.android.support:support-v13:19.1.0依赖于库,但不是库本身".

有谁知道为什么会这样?我已经安装了一些新的API20用于Android L,但是这个项目的buildTools仍然设置为19.1.0.

这是我的build.gradle的依赖项部分:

dependencies {
   compile fileTree(dir: 'libs', include: ['*.jar'])
   compile 'com.android.support:appcompat-v7:19.1.+'
   compile 'com.android.support:support-v13:19.1.+'
   compile 'com.jakewharton:butterknife:5.1.0'
   compile 'de.greenrobot:eventbus:2.2.1'
   compile 'com.google.code.gson:gson:2.2.4'
   compile 'com.mcxiaoke.viewpagerindicator:library:2.4.1'
   compile 'uk.co.chrisjenx:calligraphy:0.7.+'
   compile 'com.crashlytics.android:crashlytics:1.+'
   compile 'com.google.android.gms:play-services:4.4.+'
}
Run Code Online (Sandbox Code Playgroud)

SDK/Buildtools设置如下:

compileSdkVersion 19
buildToolsVersion "19.1.0"
Run Code Online (Sandbox Code Playgroud)

任何人都可以解释这个或指向我修复?我很难过.

goo*_*oid 18

看起来support-v13:19.1.0可能有不正确的元数据.尝试切换到

compile 'com.android.support:support-v13:20.0.0' 并查看您的问题是否仍然存在?