无法删除旧的javaCompile操作,也许类名已经改变了

我正在学习RxJava.因为我在RxJava上跟着droidcon talk video.导师为他正在使用的项目提供了repo link.当我尝试在我的机器上构建项目时,我克隆了回购.我得到这个错误

Error:Unable to delete old javaCompile action, maybe the class name
has changed? Please submit a bug report with what version of gradle
you are using.

这里是gradle.build文件

    buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'me.tatarka:gradle-retrolambda:2.5.0'
    }
}

repositories {
    mavenCentral()
    maven { url "https://github.com/alter-ego/advanced-android-logger/raw/develop/releases/" }
}

apply plugin: 'retrolambda'
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "25.0.0"

    defaultConfig {
        applicationId "com.packtpub.apps.rxjava_essentials"
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        jackOptions {
            enabled true
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    lintOptions {
        disable 'InvalidPackage'
        abortOnError false
    }

    packagingOptions {
        exclude 'META-INF/services/javax.annotation.processing.Processor'
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:support-v4:23.1.1'
    compile "com.android.support:appcompat-v7:23.1.1"
    compile 'com.android.support:recyclerview-v7:23.1.1'
    compile 'com.android.support:cardview-v7:23.1.1'

    compile 'com.jakewharton.timber:timber:4.1.0'

    compile 'org.projectlombok:lombok:1.14.8'
    compile 'com.jakewharton:butterknife:6.0.0'

    compile 'io.reactivex:rxandroid:1.1.0'
    compile 'io.reactivex:rxjava:1.1.0'
    compile 'io.reactivex:rxjava-joins:0.22.0'

    compile 'com.google.guava:guava:18.0'
    compile 'com.google.code.gson:gson:2.4'

    compile 'com.github.lzyzsd:circleprogress:1.1.0@aar'
    compile 'com.github.rey5137:material:1.0.0'

    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
    compile 'com.squareup.okhttp:okhttp:2.0.0'

    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'

}

任何想法如何解决这个问题?

在app / build.gradle上尝试一下
参考github

 buildscript {
        repositories {
            mavenCentral()
        }

        dependencies {
            classpath 'me.tatarka:gradle-retrolambda:3.4.0'
        }
    }

    repositories {
        mavenCentral()
        maven { url "https://github.com/alter-ego/advanced-android-logger/raw/develop/releases/" }
    }

    apply plugin: 'com.android.application'
    apply plugin 'me.tatarka:gradle-retrolambda:3.4.0'

    android {
        compileSdkVersion 23
        buildToolsVersion "23.0.2"

        defaultConfig {
            applicationId "com.packtpub.apps.rxjava_essentials"
            minSdkVersion 16
            targetSdkVersion 22
            versionCode 1
            versionName "1.0"
        }

        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }

        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }

        lintOptions {
            disable 'InvalidPackage'
            abortOnError false
        }

        packagingOptions {
            exclude 'META-INF/services/javax.annotation.processing.Processor'
        }
    }

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:support-v4:23.1.1'
        compile "com.android.support:appcompat-v7:23.1.1"
        compile 'com.android.support:recyclerview-v7:23.1.1'
        compile 'com.android.support:cardview-v7:23.1.1'

        compile 'com.jakewharton.timber:timber:4.1.0'

        compile 'org.projectlombok:lombok:1.14.8'
        compile 'com.jakewharton:butterknife:6.0.0'

        compile 'io.reactivex:rxandroid:1.1.0'
        compile 'io.reactivex:rxjava:1.1.0'
        compile 'io.reactivex:rxjava-joins:0.22.0'

        compile 'com.google.guava:guava:18.0'
        compile 'com.google.code.gson:gson:2.4'

        compile 'com.github.lzyzsd:circleprogress:1.1.0@aar'
        compile 'com.github.rey5137:material:1.0.0'

        compile 'com.squareup.retrofit:retrofit:1.9.0'
        compile 'com.squareup.okhttp:okhttp-urlconnection:2.0.0'
        compile 'com.squareup.okhttp:okhttp:2.0.0'

        compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'

    }
翻译自:https://stackoverflow.com/questions/43816809/unable-to-delete-old-javacompile-action-maybe-the-class-name-has-changed

转载注明原文:无法删除旧的javaCompile操作,也许类名已经改变了