Open Neelansh-ns opened 2 years ago
We were using
compile 'com.segment.analytics.android.integrations:amplitude:+'
so it caused this problem
Error while merging dex archives:
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Type androidx.core.R$attr is defined multiple times:
so we fixed it by using 3.1.0
compile 'com.segment.analytics.android.integrations:amplitude:3.1.0'
I'm using
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
ERROR:/Users/neelansh/.gradle/caches/modules-2/files-2.1/com.segment.analytics.android.integrations/amplitude/3.1.1/82edf9e35cf3230a6c23f2c76610cf4045ad16f9/amplitude-3.1.1.jar: R8: Type com.segment.analytics.core.R$color is defined multiple times: /Users/neelansh/.gradle/caches/modules-2/files-2.1/com.segment.analytics.android.integrations/amplitude/3.1.1/82edf9e35cf3230a6c23f2c76610cf4045ad16f9/amplitude-3.1.1.jar:com/segment/analytics/core/R$color.class, /Users/neelansh/StudioProjects/creatorstack_mobile/build/app/intermediates/compile_and_runtime_not_namespaced_r_class_jar/prodRelease/R.jar:com/segment/analytics/core/R$color.class