Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

New to Android Studio. After setting everything up I tried to run a basic project and keep getting this error. I changed my appcompat version to 7.22.+ and it builds. Can anyone explain this? I know I'm supposed to download that version but from where? Thank you!

Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find any version that matches com.android.support:appcompat-v7:23.+. Versions that do not match: 22.2.1 22.2.0 22.1.0 22.0.0 21.0.3 + 7 more Searched in the following locations: https://jcenter.bintray.com/com/android/support/appcompat-v7/maven-metadata.xml https://jcenter.bintray.com/com/android/support/appcompat-v7/ file:/Users/liyicky/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/maven-metadata.xml file:/Users/liyicky/Library/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/maven-metadata.xml file:/Users/liyicky/Library/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/ Required by: RayWenderlichTutorial:app:unspecified

like image 343
Jason Cheladyn Avatar asked Aug 17 '15 21:08

Jason Cheladyn


People also ask

How do I fix Appcompat error v7?

"You must have the latest versions of SDK Tools / Build Tools / Platform Tools." This trick resolved my problem. I have all updated Tools except "Build Tools". So I just update the "Build Tools", restarted eclipse then clean "appcompat" project and found my problem is solved.

What is the use of Appcompatactivity in Android?

Stay organized with collections Save and categorize content based on your preferences. Base class for activities that wish to use some of the newer platform features on older Android devices.

What is AndroidX library?

The Android Extension Library, often known as AndroidX, is the new open-source project that is a significant upgrade to the original Android Support Library and can be used to develop, test, package version, and release libraries within Jetpack. The Android Jetpack libraries are part of the AndroidX namespace.


3 Answers

I've been dealing with this too. It looks like they updated Android Studio to use appcompat v7:23 as a default even though it hasn't been released yet.

like image 80
Abc Avatar answered Oct 31 '22 06:10

Abc


Change all the dependencies with the package name com.android.support: version from 23 to 22.2.1 or 22.+ then sync Gradle.

This will fix it till they update the support libraries.

Example

dependencies {
    // compile `com.android.support:appcompat-v7:23.+`
    compile `com.android.support:appcompat-v7:22.2.1`
}

Update August 18th, 2015: couple hours later

Android Support 23 is available now. You can now restore your dependencies back as they were before and download the two below using the Android Studio SDK manager:

Support Repository 17

Android Support Library 23.0.0

like image 45
Sherlock Avatar answered Oct 31 '22 07:10

Sherlock


Make sure you have downloaded Android Support Repository (not only Android Support Library) - launch the SDK Manager (from your android-sdk location, on Windows must be as administrator, otherwise it might not connect) and look in the Extras section if you have both these components installed (I'm assuming you already have the Android SDK of the desired API level). Restart your IDE and it should work.

like image 4
dud3rino Avatar answered Oct 31 '22 07:10

dud3rino