Type 'Any Class' is defined multiple times..
여러가지 라이브러리를 선언한 상태에서 빌드를 시도할 때, 위와 같은 에러가 발생할 수 있다. 😜
두개 이상의 라이브러리에서 같은 모듈을 사용할 때, 서로 다른 Dependency version을 사용하려고 하면 중복 선언으로 인해 충돌이 발생한다. (Dependency Confilct)
gradlew app:dependencies
터미널에 위 커맨드를 입력하면 라이브러리들의 의존성트리를 볼 수 있다.
중복되는 라이브러리가 무엇인지 알았다면 다음단계를 진행한다.
implementation ('com.example:Example-A:1.0.0') { // groupName : moduleName : version
exclude group:'com.github.bumptech.glide', module:'glide'
}
References