在Android Studio中运行应用程序时出错。应用:incrementalDebugJavaCompilationSafeguard

时间:2016-07-15 18:50:47

标签: android android-studio

错误:任务':app:incrementalDebugJavaCompilationSafeguard'。

执行失败
  

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

C:\用户\ XXXX \ AndroidStudioProjects \ XXXX \应用\建立\中间体\类\调试\ COM \ bluejamesbond

它是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'

谢谢!

1 个答案:

答案 0 :(得分:0)

移动项目文件夹后出现此问题。我通过清理来解决它。 Build>Clean Project,然后重建Build>Rebuild Project