Android Studio 2.3更新:警告:使用不兼容的插件进行注释处理:android-apt.这可能会导致意外行为

栏目: 编程工具 · Android · 发布时间: 5年前

内容简介:较旧版本的Realm使用android-apt.你应该升级你的realm-android插件版本.翻译自:https://stackoverflow.com/questions/42736720/android-studio-2-3-update-warningusing-incompatible-plugins-for-the-annotatio

所以,我已经阅读了本网站上有关此问题的所有问题.我还与其中一位有类似问题的开发人员聊天,他能够解决这个问题.

我没有在我的gradle脚本中编写apt或annotationProcessor.

我的代码中没有任何地方写过android-apt这个词.我甚至继续检查了所有的库.这包含在我的项目中.

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

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

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插件版本.

翻译自:https://stackoverflow.com/questions/42736720/android-studio-2-3-update-warningusing-incompatible-plugins-for-the-annotatio


以上所述就是小编给大家介绍的《Android Studio 2.3更新:警告:使用不兼容的插件进行注释处理:android-apt.这可能会导致意外行为》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

数学建模

数学建模

[美] Frank R.Giordano,Maurice D.Weir,William P.Fox / 机械工业出版社 / 2004-1 / 45.00元

数学建模是用数学方法解决各种实际问题的桥梁。本书分离散建模(第1~9章)和连续建模(第10~13章)两部分介绍了整个建模过程的原理,通过本书的学习,学生将**会在创造性模型和经验模型的构建、模型分析以及模型研究方面进行实践,增强解决问题的能力。 ·论证了离散动力系统,离散优化等技术对现代应用数学的发展的促进作用。 ·在创造性模型和经验模型的构建、模型分析以及模型研究中融入个人项目和小组......一起来看看 《数学建模》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

SHA 加密
SHA 加密

SHA 加密工具