Muhammad Ashraf
Muhammad Ashraf

Reputation: 21

Failed to resolve: com.android.support:appcompat-v7:23.0.3

I am continuously facing problem: Failed to resolve: com.android.support:appcompat-v7:23.0.3

enter image description here

Although I have updated packages by going to the SDK Manager

enter image description here

but still facing the same problem. Even when I am creating a new project the same problem persist. Kindly guide.

Upvotes: 0

Views: 3803

Answers (3)

Chandana Kumara
Chandana Kumara

Reputation: 2645

Here you have used 23.0.3 version. But you have installed the only the API 25 version.

First you should installed 23 version if you want to keep this configurations. Unless change this to 25 version as follows.

compile 'com.android.support:appcompat-v7:25.0.0'

compileSdkVersion 25
buildToolsVersion "25.0.0"

defaultConfig {
    applicationId "it.com.test"
    minSdkVersion 14
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
}

Upvotes: 1

Rahul Sharma
Rahul Sharma

Reputation: 2893

Change it with compile 'com.android.support:appcompat-v7:25.0.0'

Also update

compileSdkVersion 25 buildToolsVersion "25.0.0"

Sync the gradle file and it will gonna work

Upvotes: 1

R. Zagórski
R. Zagórski

Reputation: 20258

The was no such version of Support libraries.

Here You can find the list.

I suggest using the newest: 25.0.0.

Build tools version and support libraries version are completely different thing.

buildToolsVersion is a field in build.gradle configuration file in android closure.

Support libraries are declared in dependencies closure.

Upvotes: 2

Related Questions