Failed to Resolve: Recyclerview-V7

Failed to resolve: recyclerview-v7

Finally I found a solution. Upgrading all the support dependencies to the latest version, solved the issue. You can check the latest version of dependencies here. I upgraded the support dependencies to the latest version 28.0.0-alpha3. It solved my problem.

Error:Failed to resolve: recyclerview-v7

wooooooooow I finally resolved my problem.

i don't Know.but the problem was from maven google().
i removed google() and add

 maven {
url 'https://maven.google.com'
}

Instead of.

i solve my problem from this Link

this is my project gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

repositories {
jcenter()
maven {
url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases/'
}

maven {
url 'http://dl.bintray.com/amulyakhare/maven'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.jakewharton:butterknife-gradle-plugin:8.8.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
//google()
maven {
url 'https://maven.google.com'
}
jcenter()
maven { url "https://jitpack.io" }

}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

Failed to resolve: com.android.support:recyclerview-v7:28.1.1

That's because there is no 28.1.1 version. The latest one is 28.0.0 so use that. Add this:

implementation 'com.android.support:recyclerview-v7:28.0.0'

instead of:

implementation 'com.android.support:recyclerview-v7:28.1.1'

You can check the latest version or all the versions ever released here

Update:

Android is moving away from Android AppCompat Library to Androidx.
Going forward you should ideally use these libraries as all the new updates will be for them. To use it include

implementation 'androidx.appcompat:appcompat:1.2.0'

and instead of

implementation 'com.android.support:recyclerview-v7:28.1.1'

use

implementation 'androidx.recyclerview:recyclerview:1.1.0'

for recyclerview.

Again, You can check the latest version or all the versions ever released of Androidx Appcompat here

Failed to resolve RecyclerView version 23

You have to update the SDK Manager.

Sample Image

Then use the latest

compile 'com.android.support:recyclerview-v7:23.2.1'


Related Topics



Leave a reply



Submit