2016-11-30 66 views
6

我最近更新了android studio 2.2.2。现在,当我检查sdks并将依赖关系添加到build.gradle时,出现连接重置错误。我不知道这件事。指导我删除此错误。Android studio连接重置错误?

image1

+0

http://stackoverflow.com/questions/17019858/android-sdk-manager-wont-update-connection-to-https-dl-ssl-google-com-refuse –

+0

你检查了上述链接/ – Gattsu

回答

3

尝试增加mavenCentral()的buildscript.repositories外壳内,像这样。把错误日志弹出答案

buildscript { 
    repositories { 
     jcenter() 
     mavenCentral() // This repo should have the gradle plugin 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:0.12.2' 

     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
}