Home » Android » Android Studio could not find any version that matches com.android.support:appcompat-v7:+

Android Studio could not find any version that matches com.android.support:appcompat-v7:+

Posted by: admin March 11, 2020 Leave a comment

Questions:

Running a project in Android Studio fails with this error: could not find any version that matches com.android.support:appcompat-v7:+

How can I fix this error?

How to&Answers:

From Android Studio go to:
Tools >> Android >> SDK Manager

Select and install “Extras|Android Support Repository”

Answer:

For me it worked after changing the version from 7:27.+ to 7:+

Answer:

Also as as said on How to update Android platform-tools in a headless linux?

 android list sdk

 android update sdk --no-ui --filter extra

Answer:

It is very simple.
Kindly update and replace the below code in build.gradle(Project :App Name).

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

Answer:

After installing Extras|Android Support Repository, It does not work for me. Then I change v7:1.6 to v7:1.8 in the app build.gradle file.

com.android.support:appcompat-v7:1.8.+! and It works for me.

Answer:

In Project > app > build.gradle file replace the line

implementation 'com.android.support:appcompat-v7:+'29.+'

with

implementation 'com.android.support:appcompat-v7:+'

and line

implementation 'com.android.support:design:29.+'

with

implementation 'com.android.support:design:+'

Then clean build

Answer:

Open SDK Manager.exe in your Android Studio folder and install a matching API.

Answer:

I found all these answers incorrect for me. Instead in your android studio look below on the left. There will be some help for this.

For example, you will notice
This support library should not use a different version (32) than the compilesdkVersion (23)

Then you change the version of to 23 like this

compile ‘com.android.support:support-v4:23’

Now, you will see a message
A newer version of com.android.support-v4 than 23 is available 23.4.0.

Thats how I knew that the correct version is 23.4.0

Answer:

If you see this after you’ve just created a new project in Intellij then try to recreate it again with “Use AndroidX artifacts” checked