2016-07-15 13 views
0

Fehler: Ausführung fehlgeschlagen für Task ': app: incrementalDebugJavaCompilationSafeguard'.Fehler beim Ausführen der App in Android Studio. app: incrementalDebugJavaCompilationSafeguard

java.io.IOException: Could not delete folder

C: \ Benutzer \ XXXX \ AndroidStudioProjects \ XXXX \ app \ bauen \ Intermediate \ classes \ debug \ com \ bluejamesbond

Es ist eine frische instaltion von Android Studio en Windows 8 und die App ausgeführt wurde danach aber in Windows 7.

Mein gradles

// 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:[email protected]') { transitive = true } 
    compile('com.crashlytics.sdk.android:crashlytics:[email protected]') { 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:[email protected]' 
    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:[email protected]') { 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:[email protected]') { 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' 

Dank!

Antwort

0

Ich habe dieses Problem nach dem Verschieben meines Projektordners. Ich löse es, indem ich es säubere. Build>Clean Project, dann erstellen Sie es erneut Build>Rebuild Project.

Verwandte Themen