同步摇篮总是出现错误而终止 [英] Sync Gradle always stops with error
问题描述
有关向后兼容的问题,我需要com.google.android:support-v4:r13,但同步摇篮总是一个错误出现:
错误:无法找到com.google.android:support-v4:r13。
GA:应用程序:由未指定必需
GA:应用程序:未指定> com.fizz-卖点:FB-Android的匕首:1.0.3
我有依赖关系:
{相关性
编译文件(库/支持-V4-r13.jar')
编译com.google.android:support-v4:r13
和我什至有它在我的libs文件夹
我做了一个加为库'就可以了,清洗工程,但没有任何工程。
我在做什么错了?
这也许给了一个额外的指示。当我做重建,我得到这个:
您的依赖关系:
{相关性
编译文件(库/支持-V4-r13.jar')//< - 尽量不要用罐子
编译com.google.android:support-v4:r13'//< - 不存在
}
这是不存在(见的版本和日期)图书馆:的http:/ /mvnrepository.com/artifact/com.google.android/support-v4
应该是:
{相关性
com.android.support:support-v4:22.0.1 //< - 依赖的gradle
}
请务必参阅文档: http://developer.android。 COM /工具/支持库/#的features.html V4
For backward compatibility problem, I need com.google.android:support-v4:r13, but Sync Gradle always comes up with an error:
Error:Could not find com.google.android:support-v4:r13.
Required by:GA:app:unspecified
GA:app:unspecified > com.fizz-buzz:fb-android-dagger:1.0.3
I have in dependencies:
dependencies {
compile files('libs/support-v4-r13.jar')
compile 'com.google.android:support-v4:r13'
and I even have it my libs folder
I did an 'Add as library' on it, cleaned the project, but nothing works. What am I doing wrong?
Maybe this gives an additional indication. When I do Rebuild, I get this:
Your Dependencies:
dependencies {
compile files('libs/support-v4-r13.jar') // <-- try not use jars
compile 'com.google.android:support-v4:r13' // <-- does not exist
}
The library that does not exist(see versions and dates): http://mvnrepository.com/artifact/com.google.android/support-v4
Should be:
dependencies {
com.android.support:support-v4:22.0.1 // <-- gradle dependency
}
Always refer to the docs: http://developer.android.com/tools/support-library/features.html#v4
这篇关于同步摇篮总是出现错误而终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!