由网友(你若安好、关我屌事)分享简介:我是新来的Android Studio并在创建新项目时,它停留在解决依赖:应用:_debugCompile 。我等了太久,甚至试图建立一个新的项目,但是这并没有奏效。下面是窗口的截图:下面的 build.gradle 文件的内容://顶级构建文件,你可以到各子项目/模块添加常用的配置选项。buildscript {...
我是新来的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...
相关推荐
最新文章