更新后 android studio 无法为锁定文件创建父目录 [英] After update android studio could not create parent directory for lock file

查看:16
本文介绍了更新后 android studio 无法为锁定文件创建父目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

同步时更新了 android studio 和插件,失败,无法为锁定文件创建父目录

Updated android studio and plugins when sync, fails with could not create parent directory for lock file

包装器属性:

#Sun Mar 05 16:51:59 PKT 2017 distributionBase=
GRADLE_USER_HOME  distributionPath=wrapper/
dists  zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/
dists  distributionUrl=https://services.gradle.org/distributions/
gradle- 3.3-all.zip

build.gradle 应用模块:

build.gradle app module:

apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.sarahn.toyapplication"
minSdkVersion 17
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 
'proguard-   rules.pro'
}
}
productFlavors {
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:
2.2.2',   {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
testCompile 'junit:junit:4.12'
}

build.gradle(项目)

build.gradle(project)

`// 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.3.0'

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

尝试下载 NDK,从项目和安装中删除 .gradle 文件夹,但没有继续

tried downloading NDK, deleting .gradle folder from project and from installs but not going forward

环境:视窗 10

推荐答案

我去那个地方 gradle build 无法创建父目录并删除了那里的缓存文件夹

I went to that location where gradle build failed to create parent directory and deleted cache folder there

这篇关于更新后 android studio 无法为锁定文件创建父目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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