相关疑难解决方法(0)

错误:任务':app:processDebugResources'的执行失败.> java.io.IOException:无法删除android studio中的文件夹""

我正在尝试使用Android Studio开发Android应用程序,因此我创建了一个Android应用程序,我想发布它.每当我点击"构建项目"来获取apk文件时,我都会收到此错误:

Error:Execution failed for task ':app:processDebugResources'.
> java.io.IOException: Could not delete folder C:\Users\ehsan\AndroidStudioProjects\MyApplication3\app\build\generated\source\r\debug\com\example\ehsan
Run Code Online (Sandbox Code Playgroud)

显示错误消息的屏幕截图

的build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.ehsan.myapplication"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.2.0'
}
Run Code Online (Sandbox Code Playgroud)

java android android-studio

66
推荐指数
7
解决办法
13万
查看次数

标签 统计

android ×1

android-studio ×1

java ×1