[안드로이드 빌드 오류]Duplicate class com.google.firebase.Timestamp found in modules jetified-firebase-common-21.0.0-runtime (com.google.firebase:firebase-common:21.0.0) and jetified-firebase-firestore-24.7.1-runtime (com.google.firebase:firebase-firestore:24.7.1) 오류 해결하기
Duplicate class com.google.firebase.Timestamp found in modules jetified-firebase-common-21.0.0-runtime (com.google.firebase:firebase-common:21.0.0) and jetified-firebase-firestore-24.7.1-runtime (com.google.firebase:firebase-firestore:24.7.1) 오류는 왜 발생되었나?
오류원인은 “com.google.firebase:firebase-bom:32.2.3” 라이브러리 버전에 따른 클래스 중복 발생한 케이스이다.
AS-IS
implementation(platform(“com.google.firebase:firebase-bom:32.2.3”))
오류 해결
TO-BE
implementation(platform(“com.google.firebase:firebase-bom:33.1.1”))