//这是我重建后显示的错误

错误:找不到符号
@CheckResult
^
符号:类CheckResult

位置:类GlideOptions

error about the annotation

my implementations

最佳答案

Glide还需要将其注释处理器作为依赖项导入。从他们的自述文件中:

dependencies {
  implementation 'com.github.bumptech.glide:glide:4.11.0'
  kapt 'com.github.bumptech.glide:compiler:4.11.0'
}

使用Kotlin,您还需要kapt插件。在其他插件下,将其添加到文件顶部附近:
apply plugin: 'kotlin-kapt'

关于gradle - KOTLIN:这些错误应该怎么办?难道我的gradle实现已经过时了吗?还是带有注释?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/60494163/

10-09 15:40
查看更多