Could not resolve com.android.support:appcompat-v7:26.1.0 解决方法

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not resolve com.android.support:appcompat-v7:26.1.0 解决方法相关的知识,希望对你有一定的参考价值。

参考技术A Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0. Open File Show Details

android studio 3.0.1  被这个问题折腾了一天,网上找的都是 说从 从setting 那个去掉 offline work的 勾选

终于找到解决办法了:

1, project build.gradle 添加如下:

allprojects

    repositories

        jcenter()

        google()

        maven url'http://maven.aliyun.com/nexus/content/groups/public/'   //敲黑板

 



2,  gradle.properties中配置了代理 mirrors.neusoft.edu.cn,无法通过implementation加载类库。应该去掉设置

#systemProp.http.proxyHost=mirrors.neusoft.edu.cn

org.gradle.jvmargs=-Xmx1536m

#systemProp.http.proxyPort=80

以上是关于Could not resolve com.android.support:appcompat-v7:26.1.0 解决方法的主要内容,如果未能解决你的问题,请参考以下文章

IDEA用github提交Could not resolve host: github.com的解决方案

mysql could not be resolved: Name or service not known

ssh: Could not resolve hostname问题终于解决了?

Push to GitHub:could not resolve host: github.com

Could not resolve bean definition resource pattern 解答了加分

git提示错误关于错误:ssh: Could not resolve hostname github.com: Name or service not known.fatal: Could not r