Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio connection reset error?

I have updated android studio 2.2.2 recently. Now i got connection reset error when i check sdks and adding dependency to build.gradle. I have no idea about this. guide me to remove this error.

image1

like image 903
kathir Avatar asked Nov 30 '16 13:11

kathir


1 Answers

Try adding mavenCentral() inside the buildscript.repositories enclosure, like so. put error log for eject answer

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
    }
 }
like image 143
Surya Prakash Kushawah Avatar answered Nov 04 '22 17:11

Surya Prakash Kushawah