gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 09:29:18 26 4
gpt4 key购买 nike

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

android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' configuration instead. Affected Modules: app

我怀念什么!这是我的 gradle 模块应用程序


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'

}

最佳答案

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

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

关于java - Android-apt 插件与 Android Gradle 插件不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58110291/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com