错误:无法解决:com.android.support:appcompat-v7:27。+ <a href="install.m2.repo">Install Repository and sync project

时间:2017-11-28 12:00:31

标签: windows android-sdk-tools android-studio-2.2

Ever since I downgraded my Android Studio (Windows) from 2.3.3 to 2.2.1 I'm getting an

Error:Failed to resolve: com.android.support:appcompat-v7:27.+

It is suggesting me to update my Android Studio to the latest version. But is there any way I can continue using version 2.2.1 withhout any need to add some references every time?

1 个答案:

答案 0 :(得分:0)

确保存储库设置正确

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

尝试

Install Repository and Sync project

安装存储库和同步项目

这将解决大部分问题。