Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Could not find com.android.support:support-v4:27.0.1

Tags:

android

gradle

I am getting the following error after updating Gradle to 3.3 and Android Studio version to 3.0.1

Error

Error:Could not find com.android.support:support-v4:27.0.1. Required by: project :app > com.android.support:design:25.2.0 project :app > com.android.support:design:25.2.0 > com.android.support:transition:25.2.0

Consult IDE log for more details (Help | Show Log)

Please install the Android Support Repository from the Android SDK Manager.

App Gradle Config:-

useLibrary 'org.apache.http.legacy'
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        vectorDrawables.useSupportLibrary = true
        applicationId "com.cyberrafting.joinapp"
        minSdkVersion 17
        targetSdkVersion 25
        versionCode 9
        versionName "9"
        multiDexEnabled true
like image 826
Deovrat Bharadwaj Avatar asked Dec 20 '17 13:12

Deovrat Bharadwaj


1 Answers

As per https://developer.android.com/topic/libraries/support-library/setup.html, make sure you're including maven.google.com repo

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}
like image 173
John O'Reilly Avatar answered Oct 21 '22 23:10

John O'Reilly