更新的Android工作室和插件時同步,失敗,不能用於鎖定文件創建父目錄更新後,Android工作室不能爲鎖定文件創建父目錄
包裝特性:
#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應用模塊:
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(項目)
`// 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而不是前進
環境: 的Windows 10
任何其他方式來做到這一點? –
你可以質疑,並給這裏的鏈接 – blackHawk
爲什麼要刪除緩存文件夾?即使在刪除緩存文件夾後, – blackHawk