如何解决“Support-v13:19.1.0取决于库,但不是库本身”? [英] How to fix "Support-v13:19.1.0 depends on libraries but is not a library itself"?

查看:165
本文介绍了如何解决“Support-v13:19.1.0取决于库,但不是库本身”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从0.6.2升级版本开始,首次在Android Studio 0.8.1中启动了一个项目。

抛出的错误是Error:Module version com .android.support:support-v13:19.1.0取决于库,但不是库本身。



有没有人知道这是为什么?我已经安装了一些新的API20与Android L一起玩,但该项目的buildTools仍然设置为19.1.0。



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

 依赖关系{
编译fileTree(dir:'libs',include:['* .jar '])
compile'c​​om.android.support:appcompat-v7:19.1.+'
compile'c​​om.android.support:support-v13:19.1.+'
compile'c​​om .jakewharton:butterknife:5.1.0'
compile'de.greenrobot:eventbus:2.2.1'
compile'c​​om.google.code.gson:gson:2.2.4'
compile 'com.mcxiaoke.viewpagerindicator:library:2.4.1'
compile'uk.co.chrisjenx:calligraphy:0.7。+'
compile'c​​om.crashlytics.android:crashlytics:1.+'
compile'c​​om.google.android.gms:play-services:4.4。+'
}

SDK / Buildtools设置如下:

  compileSdkVersion 19 
buildToolsVersion19 .1.0

任何人都可以解释这个问题,或者指向我解决问题的方法吗?我很难过。

解决方案

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



compile'c​​om.android.support:support-v13:20.0.0'并查看是否你的问题仍然存在?


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.

解决方案

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?

这篇关于如何解决“Support-v13:19.1.0取决于库,但不是库本身”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆