Android-apt插件与Android Gradle插件不兼容

时间:2019-09-26 05:46:57

标签: java android android-studio build.gradle

Android-apt插件与Android Gradle插件不兼容

  

android-apt插件与Android Gradle插件不兼容。   请改为使用“ annotationProcessor”配置。   受影响的模块:应用

我想念什么! 这是我的gradle Modules应用


    apply plugin: 'com.android.application'
    apply plugin: 'realm-android'
    android {
        compileSdkVersion 28
        buildToolsVersion '28.0.0'
        defaultConfig {
            applicationId "com.app.app"
            minSdkVersion 14
            targetSdkVersion 28
            versionCode 1
            versionName "1.0.0"
            multiDexEnabled true
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
        repositories {
            maven { url "https://jitpack.io" }
        }
    }

    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'com.android.support:appcompat-v7:28.0.0'
        implementation 'com.android.support:cardview-v7:28.0.0'
        implementation 'com.android.support:recyclerview-v7:28.0.0'
        implementation 'com.android.support:design:28.0.0'
        implementation 'com.google.firebase:firebase-messaging:20.0.0'
        implementation 'com.loopj.android:android-async-http:1.4.9'
        implementation 'com.github.satyan:sugar:1.4'
        annotationProcessor 'com.android.support:multidex:1.0.3'
         compile('com.squareup.retrofit2:retrofit:2.0.0-beta4') {
            exclude module: 'okhttp'
        }
        implementation 'com.squareup.okhttp3:okhttp:4.1.0'
        implementation 'com.squareup.okhttp3:logging-interceptor:3.0.1'
        implementation 'com.squareup.retrofit2:converter-gson:2.6.1'
        implementation 'com.squareup.picasso:picasso:2.5.2'
        implementation 'com.github.bumptech.glide:glide:4.8.0'
         implementation 'com.balysv:material-ripple:1.0.2'
        implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:9.0.1'
        testImplementation 'junit:junit:4.12'

    } 

1 个答案:

答案 0 :(得分:1)

在依赖关系块的下面添加一行:

     annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'