How to fix “Support-v13:19.1.0 depends on libraries but is not a library itself”?

a 夏天 提交于 2019-12-08 14:50:48

问题


I just launched a project in Android Studio 0.8.1 for the first time since upgrading from 0.6.2.

The error thrown is "Error:Module version com.android.support:support-v13:19.1.0 depends on libraries but is not a library itself".

Does anyone have an idea why this is? I have installed some of the new API20 stuff to play with Android L, but the buildTools for this project are still set to 19.1.0.

Here's the dependencies section of my 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.+'
}

SDK/Buildtools settings are as follows:

compileSdkVersion 19
buildToolsVersion "19.1.0"

Can anyone explain this or point me towards a fix? I'm stumped.


回答1:


It looks like the support-v13:19.1.0 might have incorrect metadata. Try switching to

compile 'com.android.support:support-v13:20.0.0' and see if your problem persists?



来源:https://stackoverflow.com/questions/24610525/how-to-fix-support-v1319-1-0-depends-on-libraries-but-is-not-a-library-itself

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!