无法解决:com.android.support:appcompat-v7:25.1.0 [英] Failed to resolve: com.android.support:appcompat-v7:25.1.0

查看:113
本文介绍了无法解决:com.android.support:appcompat-v7:25.1.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Android Studio充满了错误,android studio无法识别库.

My Android Studio is full of error android studio cannot identify libraries.

Error:(27, 13) Failed to resolve: com.android.support:appcompat-v7:25.1.0

推荐答案

请确保存储库部分包含带有"

Make sure that the repositories section includes a maven section with the "https://maven.google.com" endpoint. For example:

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

更新:

allprojects {
    repositories {
        google()

        // If you're using a version of Gradle lower than 4.1, you must
        // instead use:
        //
        // maven {
        //     url 'https://maven.google.com'
        // }
    }
}

有关详细信息,请参阅android文档

这篇关于无法解决:com.android.support:appcompat-v7:25.1.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆