[Android] 공식적으로 기재된 Glide의 설치 방법이 잘못되었습니다.

대개


Glide의 README의'Download'를 보면Gradle의 설정 방법은 다음과 같다.
dependencies {
  implementation 'com.github.bumptech.glide:glide:4.11.0'
  annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
}
./gradlew build 명령을 사용하여 구축할 때 Glide에서 다음과 같은 경고를 발견했습니다.
app: 'annotationProcessor' dependencies won't be recognized as kapt annotation processors. Please change the configuration name to 'kapt' for these artifacts: 'com.github.bumptech.glide:compiler:4.11.0'.

해결책


경고문과 같이 app/build.gradleannotationProcessor 부분을 kapt로 변경하십시오.
dependencies {
    def glide_version = "4.11.0"
    implementation "com.github.bumptech.glide:glide:$glide_version"
    kapt "com.github.bumptech.glide:compiler:$glide_version"
}

kapt 정보


이것은 kotlin-annotation-processing tools 의 줄임말로 Kotolin에서도 모조 도구를 사용할 수 있는 것 같다.
아래의 기사는 참고가 되었다.
  • kapt의 설정 방법 & 사용 방법 - Qita
  • 좋은 웹페이지 즐겨찾기