segment-integrations / analytics-android-integration-amplitude

The Amplitude analytics-android integration.
https://segment.com/docs/connections/destinations/catalog/amplitude/
2 stars 6 forks source link

Error in the version 3.1.1 during gradle build. #62

Open Neelansh-ns opened 2 years ago

Neelansh-ns commented 2 years ago

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

Stringsaeed commented 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'