首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Android-apt插件与Android Gradle插件不兼容。

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

Stack Overflow用户
提问于 2019-09-26 05:46:57
回答 1查看 115关注 0票数 0

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

安卓-apt插件与Android插件不兼容。请使用“annotationProcessor”配置代替。受影响模块: app

我错过了什么!这是我的分级模块应用程序

代码语言:javascript
复制
    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'

    } 
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-09-26 05:50:01

在依赖项块中添加以下行:

代码语言:javascript
复制
     annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58110291

复制
相关文章

相似问题

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