首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android-apt插件是不兼容的。请改用“annotationProcessor”配置

Android-apt插件是不兼容的。请改用“annotationProcessor”配置
EN

Stack Overflow用户
提问于 2017-10-30 15:16:49
回答 1查看 522关注 0票数 0

我没有找到解决问题的有效办法。有人能看看我的代码并告诉我应该更改什么吗?将编译更改为implementatino不起作用。我已经试过清理,重建和失效。我还试图将领域的版本更改为最大的版本,但随后我就得到了与应用程序相关的差事。

app/build.grade

代码语言:javascript
复制
    plugins {
    id "me.tatarka.retrolambda" version "3.2.0"
}

apply plugin: 'com.android.application'
apply plugin: 'realm-android'

android {
    compileSdkVersion 23
    buildToolsVersion '26.0.2'

    defaultConfig {
        applicationId "eu.storware.kodo"
        minSdkVersion 14
        targetSdkVersion 23

        multiDexEnabled true
        testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'

        ndk {
            abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
        }

    }

    buildTypes {
        release {
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    lintOptions {
        abortOnError false
    }
}

configurations {
    all*.exclude group: 'javax.inject'
}

dependencies {
    compile files('libs/commons-io-2.4.jar')
    compile files('libs/jsr305-1.3.9.jar')
    compile files('libs/logback-android-1.1.1-2.jar')
    compile files('libs/slf4j-api-1.7.6.jar')
    compile files('libs/edm.jar')
    compile files('libs/knox.jar')
    compile files('libs/license.jar')
    compile files('libs/rc.jar')

    compile 'com.android.support:cardview-v7:23.4.0'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.google.android.gms:play-services-gcm:7.5.0'
    provided 'org.roboguice:roboblender:3.0.1'
    compile 'org.roboguice:roboguice:3.0.1'
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.google.code.gson:gson:2.4'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.flipboard:bottomsheet-core:1.5.0'
    compile 'com.flipboard:bottomsheet-commons:1.5.0' // optional

    compile 'com.squareup.okhttp3:okhttp:3.3.1'

    compile 'com.makeramen:roundedimageview:2.2.1'

    compile 'info.guardianproject.iocipher:IOCipherStandalone:0.3'

    compile 'com.android.support:design:23.4.0'

    annotationProcessor 'com.jakewharton:butterknife-compiler:8.0.1'
    compile 'com.jakewharton:butterknife:8.0.1'

    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'
    compile 'com.mobilesolutionworks:works-util:1.0.4'

    compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
    compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4'

    testCompile 'junit:junit:4.12'

    androidTestCompile 'com.android.support.test:runner:0.4.1'
    androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
    androidTestCompile 'com.android.support:support-annotations:23.4.0'

    testCompile 'org.mockito:mockito-core:1.10.8'
    testCompile 'org.hamcrest:hamcrest-core:1.3'
    testCompile 'org.json:json:20090211'

}

build.grade

代码语言:javascript
复制
buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
        classpath "io.realm:realm-gradle-plugin:1.2.0"
    }
}

allprojects {
    repositories {
        jcenter()
        google()
    }
}
EN

回答 1

Stack Overflow用户

发布于 2018-01-25 00:42:03

遇到同样的问题。通过更新到最新的领域-分级插件来解决这个问题。

代码语言:javascript
复制
classpath "io.realm:realm-gradle-plugin:4.3.3"

希望这能有所帮助。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47018710

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档