【发布时间】:2017-03-04 08:14:31
【问题描述】:
gradle 构建失败并显示消息
Error:Could not create parent directory for lock file C:\Program Files\Android\Android Studio\gradle\gradle-2.14.1\wrapper\dists\gradle-2.14.1-all\8bnwg5hd3w55iofp58khbp6yv\gradle-2.14.1-all.zip.lck
这是我的 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:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
更新后所有项目都显示相同的错误。
【问题讨论】:
-
尝试删除.gradle文件stackoverflow.com/a/39270010/3111083并重启studio
-
已经试过了。同样的错误。 @sunilsunny
-
也试过无效缓存/重启选项。?
-
尝试了同样的错误。
-
我也面临类似的问题,尝试了很多解决方案都没有运气..已经3天了。
标签: android android-studio android-studio-2.3