码迷,mamicode.com
首页 > 移动开发 > 详细

Failed to resolve com.android.support:support-compat:25.4.0

时间:2017-12-26 23:11:32      阅读:597      评论:0      收藏:0      [点我收藏+]

标签:can   war   strong   npos   height   blog   action   androi   anon   


I am trying to include this library to my project by adding

compile ‘jp.wasabeef:recyclerview-animators:2.2.7‘

to the dependencies. When the graddle sync happens an error produced like below

Failed to resolve com.android.support:support-recycleriew-v7:25.4.0

Failed to resolve com.android.support:support-compat:25.4.0

Failed to resolve com.android.support:support-core-ui:25.4.0

The graddle dependencies looks like

dependencies {
compile fileTree(dir: ‘libs‘, include: [‘*.jar‘])
compile ‘com.android.support:appcompat-v7:25.3.1‘
compile ‘com.android.support:design:25.3.1‘
compile ‘com.android.support:support-v4:25.3.1‘
compile ‘com.android.support:recyclerview-v7:25.4.0‘
compile ‘com.android.support:cardview-v7:25.3.1‘
compile ‘com.android.volley:volley:1.0.0‘
compile ‘com.fasterxml.jackson.core:jackson-databind:2.8.5‘
compile ‘com.fasterxml.jackson.core:jackson-core:2.8.5‘
compile ‘com.fasterxml.jackson.core:jackson-annotations:2.8.5‘
compile ‘com.android.support:support-core-ui:25.4.0‘
compile ‘com.android.support:support-compat:25.4.0‘
compile ‘jp.wasabeef:recyclerview-animators:2.2.7‘

}

What is wrong here?

shareimprove this question
 
Failed to resolve com.android.support:support-recycleview:25.4.0

There is no library by that name. There is com.android.support:recyclerview-v7:25.4.0.

Failed to resolve com.android.support:support-compat:25.4.0
Failed to resolve com.android.support:support-core-ui:25.4.0

These are in the new Google Maven repo. Add maven { url "https://maven.google.com" } to your repositories closure, as shown in the documentation.

shareimprove this answer
 
    
it was recyclerview-v7:25.4.0. That was a typing error. and it works now. thanks. – Hari Krishnan Jul 9 at 17:47

Failed to resolve com.android.support:support-compat:25.4.0

标签:can   war   strong   npos   height   blog   action   androi   anon   

原文地址:https://www.cnblogs.com/weizhxa/p/8120432.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!