Error : Failed To Find: Com.android.support:support-v4:20.0.+
I have imported a project in Android Studio that was built in it. I require v4 and v7 library in the project. This is how my build.gradle looks like build.gradle apply plugin: 'and
Solution 1:
The Android
support repository was missing,So go to Android SDK
, install the Android Support Repository
and Android Support Library
.
Also you can use the following
compile'com.android.support:support-v4:20.0.0'compile'com.android.support:appcompat-v7:20.0.0'
instead of
compile'com.android.support:appcompat-v7:20.0.+'compile'com.android.support:support-v4:20.0.+'
Solution 2:
Note: If you're developing with Android Studio, select and install the Android Support Repository item instead.
see here.
Solution 3:
From Android Studio go to: Tools >> Android >> SDK Manager
Select and install "Extras|Android Support Repository"
Solution 4:
add maven to your gradle file (project)
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
}
}
}
and use this gradle wrapper:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
and downgrade to gradle plugin to be 2.3.1
classpath 'com.android.tools.build:gradle:2.3.1'
Post a Comment for "Error : Failed To Find: Com.android.support:support-v4:20.0.+"