Failed to resolve: com.android.support:support-v4:27.1.1
19,999
Solution 1
In your project build.gradle, change the sequence of repositories, make google() the first.
allprojects {
repositories {
google()
jcenter()
}
}
Solution 2
Just change your dependencies version name same as below
dependencies {
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:support-v4:27.0.2'
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.google.android.gms:play-services-ads:11.8.0'
}
and also add
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
Author by
Ali Sheikhpour
I have worked with HTML, CSS, JavaScript, Jquery, SQL and ASP for 20 years. I guess I am doing Extreme Programming! I am expert in VBScript and classic ASP.
Updated on June 14, 2022Comments
-
Ali Sheikhpour almost 2 years
I have upgraded to API 27 and build tools. Previously I was using API 22.
after upgrading to SDK 27 I got error that I have to use support library similar to level 27. I have downloaded Support repository version 47.0.0 through SDK manager and finally this is my gradle setting. What should I do to resolve the following error:
apply plugin: 'com.android.application' android { compileSdkVersion 27 buildToolsVersion "27.0.3" defaultConfig { applicationId "com.sample.app" minSdkVersion 14 targetSdkVersion 19 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { implementation 'com.google.firebase:firebase-messaging:11.0.4' compile 'com.google.android.gms:play-services:11.0.4' compile 'com.android.support:support-v4:27.1.1' } apply plugin: 'com.google.gms.google-services'
Error:(23, 13) Failed to resolve: com.android.support:support-v4:27.1.1
-
Vishal G. Gohel about 6 yearsset * targetSdkVersion 27*
-
Rajesh about 6 years
-
Nasser Tahani almost 6 yearsI have the same problem. Did you get any solution, Ali?
-
Ali Sheikhpour almost 6 yearsI didn't test the answers to this question. I have just changed my codes without using of support package! @NasserTahani
-
Code Spy over 5 yearsThis solution solved for Ionic 3 ---> freakyjolly.com/…
-
-
Bashir Saidi Wamula over 2 yearsam using capacitor i cant find
android/project.properties
file in the android folder