'could Not Resolve Recyclerview-v7' Error, While Updating Gradle Version And Compile To Implementation
Solution 1:
This is because You have updated all compile
to implementation
in your build.gradle "App level"
To solve this - Go to your build.gradle (Project level)
and You just need to add google() on top of jcenter() inside repositories blockes.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'// NOTE: Do not place your application dependencies here; they belong// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Take this code and put inside your build.gradle "Project Level"
Solution 2:
Add google()
to your allprojects
>> repositories
block. You don't need to add maven { url 'https://maven.google.com' }
and consecutive maven block.
Solution 3:
The fact that it works using lower version of Gradle, means that MOST PROBABLY it's not because of repository.
Maybe it's because of your buildToolsVersion
. I didn't see you put it in your build.gradle
. Please make sure it is 27.0.3.
Have you check in your SDK Manager? You can make sure that your SDK Manager didn't use older version of SDK Build Tools.
SDK Tools -> Check Show Package Details (on left bottom) -> Install Build Tools version 27.0.3, and uninstall older Build Tools version
Post a Comment for "'could Not Resolve Recyclerview-v7' Error, While Updating Gradle Version And Compile To Implementation"