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

后端 未结 5 2298
温柔的废话
温柔的废话 2021-02-19 22:41

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

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 22:55

    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

提交回复
热议问题