Android Studio 2.3更新:警告:使用不兼容的插件进行注释处理:android-apt.这可能会导致意外的行为 [英] Android Studio 2.3 update : Warning:Using incompatible plugins for the annotation processing: android-apt. This may result in an unexpected behavior

查看:177
本文介绍了Android Studio 2.3更新:警告:使用不兼容的插件进行注释处理:android-apt.这可能会导致意外的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我已经阅读了所有可以在此站点上找到的有关此问题的问题.我还与一位解决了类似问题的开发人员进行了聊天,他们能够解决该问题.

So, I have read all the questions I could find on this site regarding this issue. I have also had a chat in comments with one of the developer with similar issue, who was able to solve it.

我没有在gradle脚本中的任何位置写apt或注解处理器.

I dont have apt or annotationProcessor written any where in my gradle scripts.

我的代码中的任何地方都没有写上android-apt这个词.我什至继续检查所有的图书馆.这些都包含在我的项目中.

I dont have the word android-apt written anywhere in my code. I even went ahead and checked out all the libraries. That were included in my project.

这是一个非常大的问题,需要解决.

This is a really big problem and needs to be solved.

我将在下面附加修改后的build.gradle,请提出建议:

I am attaching the modified build.gradle below, Please suggest :

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


android {
    dexOptions {
        jumboMode = true
    }

    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion


    useLibrary 'org.apache.http.legacy'
    defaultConfig {
        applicationId "com.legalimpurity.indiancourts"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode rootProject.ext.versionCode
        versionName rootProject.ext.versionName

        multiDexEnabled true
        vectorDrawables.useSupportLibrary = true;
    }
    buildTypes {
        release {
//            minifyEnabled true
//            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    signingConfigs {
    }

    dataBinding {
        enabled = true
    }



}
//For Facebook i guess
repositories {
    mavenCentral()
    maven {
        url "https://jitpack.io"
    }
    maven { url 'https://maven.fabric.io/public' }
}
def var = dependencies {
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'

    compile 'com.google.android.gms:play-services-auth:9.4.0'
    compile 'com.google.android.gms:play-services-analytics:9.4.0'
    compile 'com.google.android.gms:play-services-plus:9.4.0'
    compile 'com.google.android.gms:play-services-ads:9.4.0'
    compile 'com.google.android.gms:play-services-identity:9.4.0'
//    compile 'com.google.android.gms:play-services-gcm:9.4.0'

    compile 'com.google.firebase:firebase-messaging:9.4.0'


    compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    compile "com.android.support:cardview-v7:${rootProject.ext.supportLibVersion}"
    compile "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"
    compile "com.android.support:design:${rootProject.ext.supportLibVersion}"
    compile "com.android.support:support-v4:${rootProject.ext.supportLibVersion}"



    compile('com.github.ozodrukh:CircularReveal:2.0.1@aar') {
        transitive = true;
    }
    compile 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
    compile 'com.android.support:multidex:1.0.1'

//    compile 'com.joanzapata.pdfview:android-pdfview:1.0.4@aar'
    compile 'com.github.barteksc:android-pdf-viewer:2.4.0'
    compile 'com.wdullaer:materialdatetimepicker:3.1.3'


    compile 'com.facebook.android:account-kit-sdk:4.+'


    compile 'com.android.volley:volley:1.0.0'

//    compile 'com.facebook.android:facebook-android-sdk:4.6.0'


//    compile 'com.satsuware.lib:usefulviews:2.3.6'

    compile 'com.hkm:hkmprocessbuttons:1.2.4'
    compile 'com.github.thorbenprimke:realm-searchview:0.9.6'

    compile 'com.jakewharton:butterknife:8.5.1'
//    compile 'com.github.amlcurran.showcaseview:library:5.4.3'
    compile 'com.github.deano2390:MaterialShowcaseView:1.1.0'
//    compile 'com.zaihuishou:expandablerecycleradapter-databinding:1.0.0'
//    compile 'com.squareup.picasso:picasso:2.5.2'

//    compile 'com.legalimpurity.expandablerecyclerview:expandable-recyclerview:1.0'
    compile project(':agendacalendarview')
    compile project(':expandablelibrary')
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
    compile 'com.android.support:support-v4:25.+'

}
apply plugin: 'com.jakewharton.butterknife'
apply plugin: 'com.google.gms.google-services'

configurations.all {
    resolutionStrategy {
        force "com.android.support:support-annotations:25.2.0"
    }
}

推荐答案

旧版本的Realm使用android-apt.您应该升级realm-android插件版本.

Older versions of Realm use android-apt. You should upgrade your realm-android plugin version.

这篇关于Android Studio 2.3更新:警告:使用不兼容的插件进行注释处理:android-apt.这可能会导致意外的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆