androidandroid-studio

Android Studio stuck on gradle resolving dependencies


I'm new to Android Studio and while creating a new project it stuck at resolving dependencies :app:_debugCompile.

I waited for sometime and even tried to create a new project, but that didn't work. Here's a screenshot of the window:

Here's the contents of build.gradle file:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'

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

allprojects {
    repositories {
        jcenter()
    }
}

Solution

  • Killing the process or restarting the system helped me. Now it works perfectly fine...

    P.S: A quote from the sitcom The IT Crowd:

    Did you try turning it off and on again?