在 Android Studio 中运行应用程序时出错.app:incrementalDebugJavaCompilat



错误:任务":app:incrementalDebugJavaCompilationSafeguard"的执行失败。

java.io.IOException:无法删除文件夹

C:\Users\XXXX\

AndroidStudioProjects\XXXX\app\build\intermediates\classes\debug\com\bluejamesbond

它是 Android Studio en Windows 8 的新版本,该应用程序在那之后运行,但在 Windows 7 中。

我的成绩

    // 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.1.2'
            classpath 'com.google.gms:google-services:3.0.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
    }
apply plugin: 'com.android.application'
buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }
    dependencies {
        classpath 'io.fabric.tools:gradle:1.21.5'
    }
}
android {
    compileSdkVersion 24
    buildToolsVersion "23.0.3"
    defaultConfig {
        applicationId "com.XXX.XXX"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 23
        versionName "1.9.6"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    mavenCentral()
    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
    maven { url 'https://maven.fabric.io/public' }
    maven { url "https://jitpack.io" }
}
dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile project(':volley')
    compile('com.github.worker8:tourguide:1.0.16-SNAPSHOT@aar') { transitive = true }
    compile('com.crashlytics.sdk.android:crashlytics:2.6.0@aar') { transitive = true;     }
    compile 'com.github.bluejamesbond:textjustify-android:2.1.6'
    compile 'com.bignerdranch.android:expandablerecyclerview:2.1.1'
    compile 'com.github.clans:fab:1.6.2'
    compile 'com.getbase:floatingactionbutton:1.10.1'
    compile 'com.facebook.android:facebook-android-sdk:4.6.0'
    compile 'com.squareup.picasso:picasso:2.3.2'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.daimajia.slider:library:1.1.5@aar'
    compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'
    compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
    compile 'com.sothree.slidinguppanel:library:3.2.1'
    compile 'io.card:android-sdk:5.3.4'
    compile 'com.github.techery:ProperRatingBar:v0.0.3'
    compile ('com.mercadopago:sdk:BETA_WORKSHOP@aar') { transitive = true }
    compile 'com.android.support:palette-v7:24.0.0'
    compile 'com.github.arimorty:floatingsearchview:2.0.1'
    compile ('com.lamudi.phonefield:phone-field:0.0.8@aar') {  transitive = true  }
    compile 'com.android.support:support-vector-drawable:24.0.0'
    compile 'com.android.support:animated-vector-drawable:24.0.0'
    compile 'com.android.support:design:24.0.0'
    compile 'com.android.support:support-v4:24.0.0'
    compile 'com.android.support:appcompat-v7:24.0.0'
    compile 'com.android.support:cardview-v7:24.0.0'
    compile 'com.android.support:recyclerview-v7:24.0.0'
    compile 'com.google.android.gms:play-services-analytics:9.2.0'
    compile 'com.google.android.gms:play-services-gcm:9.2.0'
    compile 'com.google.android.gms:play-services-maps:9.2.0'
    compile 'com.google.android.gms:play-services-appindexing:9.2.0'
    compile 'com.google.android.gms:play-services:9.2.0'
    compile 'com.google.android.gms:play-services-auth:9.2.0'
    compile 'com.google.maps.android:android-maps-utils:0.4.1'
    compile 'com.android.support:multidex:1.0.1'
}
apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'

谢谢!

移动项目文件夹后我遇到了这个问题。我通过清洁来解决它。 Build>Clean Project,然后Build>Rebuild Project重建它。

相关内容

最新更新