Platform/Android

[Error] Duplicate class com.google.firebase.*

개래갱깽스타 2020. 9. 3. 11:54

MY Case)

"com.google.mlkit:barcode-scanning:$versions.mlkit_barcode_scanning" 을 추가한 후 발생

versions.mlkit_barcode_scanning = "16.0.1"

 

해결!

FCM 버전을 최신버전으로 UP 시켜주었다.

versions.firebase_messaging = "20.2.1" // FCM

https://stackoverflow.com/questions/62578673/how-to-fix-duplicate-class-com-google-firebase-components

 

How to fix `duplicate class com.google.firebase.components`?

I started to use the MLKit barcode scanner in my project and get the Duplicate class error when trying to run the app. Also, I tried to exclude firebase-common and exclude firebase-components, but it

stackoverflow.com

 

반응형