Android Studio 卡在解析依赖项的 gradle 上 [英] Android Studio stuck on gradle resolving dependencies

查看:49
本文介绍了Android Studio 卡在解析依赖项的 gradle 上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Android Studio 的新手,在创建新项目时,它一直在解析依赖项 :app:_debugCompile.

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:

这是build.gradle文件的内容:

// 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()
    }
}

推荐答案

终止进程或重新启动系统对我有帮助.现在它工作得很好...

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

P.S:引自情景喜剧IT人群:

Did you try turning it off and on again?

这篇关于Android Studio 卡在解析依赖项的 gradle 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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