Android的工作室停留在摇篮解决依赖 [英] Android Studio stuck on gradle resolving dependencies
本文介绍了Android的工作室停留在摇篮解决依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新来的Android Studio并在创建新项目时,它停留在解决依赖:应用:_debugCompile
。我等了太久,甚至试图建立一个新的项目,但是这并没有奏效。下面是窗口的截图:
下面的 build.gradle
文件的内容:
//顶级构建文件,你可以到各子项目/模块添加常用的配置选项。
buildscript {
库{
jcenter()
}
依赖{
类路径com.android.tools.build:gradle:1.0.0
//注意:不要在这里放置应用程序依赖;他们属于
//在单个模块build.gradle文件
}
}
allprojects {
库{
jcenter()
}
}
解决方案
我不知道发生了什么。但是,重新启动系统帮助了我。现在工作完全正常......
I'm new to Android Studio and while creating a new project it stuck at resolving dependencies :app:_debugCompile
. I waited for too long and even tried to create a new project, but that didn't worked. 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()
}
}
解决方案
I don't know what happened. But, restarting the system helped me. Now it works perfectly fine...
这篇关于Android的工作室停留在摇篮解决依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文