mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
464 stars 131 forks source link

Duplicate class on build #2236

Closed hey-james-dev closed 9 months ago

hey-james-dev commented 9 months ago

Environment

Observed behavior and steps to reproduce

I've updated mapbox version to 11.0.0 from 10.9.1.

`

    implementation 'com.mapbox.maps:android:11.0.0'

    implementation ("com.mapbox.mapboxsdk:mapbox-android-plugin-offline-v9:0.9.0", {
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry'
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry-okhttp3'
    })

    implementation ("com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.42.6", {
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry'
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry-okhttp3'
    })

    implementation "com.mapbox.navigation:android:2.5.1"

But, I'm getting a build failure related to duplicate classes:

`

Duplicate class com.mapbox.android.core.permissions.PermissionsListener found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-mapbox-android-core-5.0.1-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.1)
Duplicate class com.mapbox.android.core.permissions.PermissionsManager found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-mapbox-android-core-5.0.1-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.1)
Duplicate class com.mapbox.android.core.permissions.PermissionsManager$AccuracyAuthorization found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-mapbox-android-core-5.0.1-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.1)
Duplicate class com.mapbox.common.module.okhttp.CallbackWrapper found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.CallbackWrapper$RequestCallback found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.HttpCallback found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.IdGenerator found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.LazyClient found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$1 found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$HttpServiceOfflineSwitchObserver found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.module.Mapbox_HttpClientModuleConfiguration found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)

`

The dependency tree is included below.

+--- com.mapbox.maps:android:11.0.0
|    +--- com.mapbox.base:common:0.8.0
|    +--- com.mapbox.maps:base:11.0.0
|    |    +--- com.mapbox.mapboxsdk:mapbox-android-gestures:0.8.0
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31 -> 1.8.22 (*)
|    |    +--- com.mapbox.maps:android-core:11.0.0
|    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:5.4.1 -> 6.9.0
|    |    |    |    \--- com.google.code.gson:gson:2.8.6 -> 2.9.1
|    |    |    +--- com.mapbox.common:common:24.0.0
|    |    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:6.9.0 (*)
|    |    |    |    \--- com.mapbox.base:common:0.8.0
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20 -> 1.8.22 (*)
|    |    \--- com.mapbox.common:common:24.0.0 (*)
|    +--- com.mapbox.extension:maps-style:11.0.0
|    +--- com.mapbox.plugin:maps-logo:11.0.0
|    +--- com.mapbox.plugin:maps-compass:11.0.0
|    +--- com.mapbox.plugin:maps-gestures:11.0.0
|    |    \--- com.mapbox.mapboxsdk:mapbox-android-gestures:0.8.0 (*)
|    +--- com.mapbox.plugin:maps-attribution:11.0.0
|    +--- com.mapbox.plugin:maps-locationcomponent:11.0.0
|    +--- com.mapbox.plugin:maps-animation:11.0.0
|    +--- com.mapbox.plugin:maps-scalebar:11.0.0
|    +--- com.mapbox.plugin:maps-overlay:11.0.0
|    +--- com.mapbox.plugin:maps-annotation:11.0.0
|    |    \--- com.mapbox.extension:maps-style:11.0.0
|    +--- com.mapbox.extension:maps-localization:11.0.0
|    +--- com.mapbox.plugin:maps-lifecycle:11.0.0
|    +--- com.mapbox.plugin:maps-viewport:11.0.0
|    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20 -> 1.8.22 (*)
|    \--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1 -> 1.6.4
|         \--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4
|              +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4
|              |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 (c)
|              |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4 (c)
|              |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 (c)
|              |    \--- org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.6.4 (c)
|              +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 -> 1.8.22 (*)
|              \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21 -> 1.8.22
+--- com.mapbox.mapboxsdk:mapbox-android-plugin-offline-v9:0.9.0
+--- com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.42.6
|    +--- com.mapbox.mapboxsdk:mapbox-android-navigation:0.42.6
|    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-services:4.9.0 -> 6.5.0
|    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-core:6.5.0
|    |    |    |    +--- com.google.code.gson:gson:2.8.6 -> 2.9.1
|    |    |    |    +--- com.squareup.retrofit2:retrofit:2.7.2
|    |    |    |    |    \--- com.squareup.okhttp3:okhttp:3.14.7 -> 4.10.0
|    |    |    |    |         +--- com.squareup.okio:okio:3.0.0
|    |    |    |    |         |    \--- com.squareup.okio:okio-jvm:3.0.0
|    |    |    |    |         |         +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31 -> 1.8.22 (*)
|    |    |    |    |         |         \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31 -> 1.8.22
|    |    |    |    |         \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.20 -> 1.8.22 (*)
|    |    |    |    +--- com.squareup.retrofit2:converter-gson:2.7.2
|    |    |    |    |    +--- com.squareup.retrofit2:retrofit:2.7.2 (*)
|    |    |    |    |    \--- com.google.code.gson:gson:2.8.5 -> 2.9.1
|    |    |    |    \--- com.squareup.okhttp3:logging-interceptor:4.9.0
|    |    |    |         +--- com.squareup.okhttp3:okhttp:4.9.0 -> 4.10.0 (*)
|    |    |    |         \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10 -> 1.8.22 (*)
|    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:6.5.0 -> 6.9.0 (*)
|    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-directions-models:6.5.0
|    |    |    |    \--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:6.5.0 -> 6.9.0 (*)
|    |    |    \--- com.mapbox.mapboxsdk:mapbox-sdk-directions-refresh-models:6.5.0
|    |    |         \--- com.mapbox.mapboxsdk:mapbox-sdk-directions-models:6.5.0 (*)
|    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-turf:4.9.0 -> 6.5.0
|    |    |    \--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:6.5.0 -> 6.9.0 (*)
|    |    +--- com.mapbox.mapboxsdk:mapbox-android-core:1.4.0 -> 5.0.1
|    |    +--- com.mapbox.navigator:mapbox-navigation-native:7.0.0 -> 101.0.1
|    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:5.2.1 -> 6.9.0 (*)
|    |    |    +--- com.mapbox.common:common:21.3.0 -> 24.0.0 (*)
|    |    |    \--- com.mapbox.common:okhttp:21.3.0 -> 21.3.1
|    |    |         \--- com.mapbox.common:common:21.3.1 -> 24.0.0 (*)
|    |    +--- com.android.support:appcompat-v7:28.0.0 -> androidx.appcompat:appcompat:1.6.1
|    |    |    +--- androidx.activity:activity:1.6.0 -> 1.8.0
|    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    +--- androidx.core:core:1.8.0 -> 1.9.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.2.0 -> 1.7.0 (*)
|    |    |    |    |    +--- androidx.annotation:annotation-experimental:1.3.0
|    |    |    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 -> 1.8.22 (*)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.3.1 -> 2.6.2
|    |    |    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    |    |    +--- androidx.arch.core:core-common:2.2.0
|    |    |    |    |    |    |    \--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.6.2
|    |    |    |    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |    |    |    |    |    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4
|    |    |    |    |    |    |    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 (*)
|    |    |    |    |    |    |    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4 (*)
|    |    |    |    |    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 -> 1.8.22 (*)
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.6.2 (c)
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2 (c)
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-process:2.6.2 (c)
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (c)
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.6.2 (c)
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-service:2.6.2 (c)
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.2 (c)
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2 (c)
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 (c)
|    |    |    |    |    |    |    \--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.2 (c)
|    |    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-process:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-service:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 (c)
|    |    |    |    |    |    \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2 (c)
|    |    |    |    |    \--- androidx.versionedparcelable:versionedparcelable:1.1.1
|    |    |    |    |         +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    |         \--- androidx.collection:collection:1.0.0 -> 1.1.0
|    |    |    |    |              \--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.1 -> 2.6.2 (*)
|    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.1 -> 2.6.2
|    |    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-process:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-service:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 (c)
|    |    |    |    |    \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2 (c)
|    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.1 -> 2.6.2
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    |    |    |    +--- androidx.core:core-ktx:1.2.0 -> 1.9.0
|    |    |    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    |    |    +--- androidx.core:core:1.9.0 (*)
|    |    |    |    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 -> 1.8.22 (*)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.6.2 (*)
|    |    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-process:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-service:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 (c)
|    |    |    |    |    |    \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.2 (*)
|    |    |    |    |    +--- androidx.savedstate:savedstate:1.2.1
|    |    |    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |    |    |    |    |    \--- androidx.savedstate:savedstate-ktx:1.2.1 (c)
|    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |    |    |    |    +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 (*)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-process:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-service:2.6.2 (c)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.2 (c)
|    |    |    |    |    \--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 (c)
|    |    |    |    +--- androidx.savedstate:savedstate:1.2.1 (*)
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.22 (*)
|    |    |    |    \--- androidx.activity:activity-ktx:1.8.0 (c)
|    |    |    +--- androidx.annotation:annotation:1.3.0 -> 1.7.0 (*)
|    |    |    +--- androidx.appcompat:appcompat-resources:1.6.1
|    |    |    |    +--- androidx.annotation:annotation:1.2.0 -> 1.7.0 (*)
|    |    |    |    +--- androidx.core:core:1.6.0 -> 1.9.0 (*)
|    |    |    |    +--- androidx.vectordrawable:vectordrawable:1.1.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    |    +--- androidx.core:core:1.1.0 -> 1.9.0 (*)
|    |    |    |    |    \--- androidx.collection:collection:1.1.0 (*)
|    |    |    |    \--- androidx.vectordrawable:vectordrawable-animated:1.1.0
|    |    |    |         +--- androidx.vectordrawable:vectordrawable:1.1.0 (*)
|    |    |    |         +--- androidx.interpolator:interpolator:1.0.0
|    |    |    |         |    \--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    |    |         \--- androidx.collection:collection:1.1.0 (*)
|    |    |    +--- androidx.core:core:1.9.0 (*)
|    |    |    +--- androidx.cursoradapter:cursoradapter:1.0.0
|    |    |    |    \--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    |    +--- androidx.drawerlayout:drawerlayout:1.0.0 -> 1.1.1
|    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    +--- androidx.core:core:1.2.0 -> 1.9.0 (*)
|    |    |    |    \--- androidx.customview:customview:1.1.0
|    |    |    |         +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |         \--- androidx.core:core:1.3.0 -> 1.9.0 (*)
|    |    |    +--- androidx.fragment:fragment:1.3.6 -> 1.6.0
|    |    |    |    +--- androidx.activity:activity:1.5.1 -> 1.8.0 (*)
|    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    +--- androidx.annotation:annotation-experimental:1.0.0 -> 1.3.0 (*)
|    |    |    |    +--- androidx.collection:collection:1.1.0 (*)
|    |    |    |    +--- androidx.core:core-ktx:1.2.0 -> 1.9.0 (*)
|    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.1 -> 2.6.2 (*)
|    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.1 -> 2.6.2 (*)
|    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.1 -> 2.6.2 (*)
|    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.1 -> 2.6.2 (*)
|    |    |    |    +--- androidx.loader:loader:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    |    |    |    +--- androidx.core:core:1.0.0 -> 1.9.0 (*)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.0.0 -> 2.6.2
|    |    |    |    |    |    +--- androidx.arch.core:core-runtime:2.1.0 -> 2.2.0
|    |    |    |    |    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    |    |    |    |    \--- androidx.arch.core:core-common:2.2.0 (*)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2 (*)
|    |    |    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-process:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-service:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2 (c)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 (c)
|    |    |    |    |    |    \--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.2 (c)
|    |    |    |    |    \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.6.2 (*)
|    |    |    |    +--- androidx.savedstate:savedstate:1.2.1 (*)
|    |    |    |    +--- androidx.viewpager:viewpager:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    |    |    |    +--- androidx.core:core:1.0.0 -> 1.9.0 (*)
|    |    |    |    |    \--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
|    |    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 -> 1.8.22 (*)
|    |    |    |    \--- androidx.fragment:fragment-ktx:1.6.0 (c)
|    |    |    \--- androidx.savedstate:savedstate:1.2.0 -> 1.2.1 (*)
|    |    \--- com.jakewharton.timber:timber:4.7.1
|    |         \--- org.jetbrains:annotations:16.0.1
|    +--- com.mapbox.mapboxsdk:mapbox-android-sdk:8.5.1 -> 9.6.2
|    |    +--- com.mapbox.mapboxsdk:mapbox-android-core:5.0.0 -> 5.0.1
|    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:5.3.0 -> 6.9.0 (*)
|    |    +--- com.mapbox.mapboxsdk:mapbox-android-gestures:0.7.0 -> 0.8.0 (*)
|    |    +--- com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0
|    |    \--- com.mapbox.mapboxsdk:mapbox-android-sdk-gl-core:5.2.2
|    +--- com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0
|    |    +--- com.android.support:appcompat-v7:28.0.0 -> androidx.appcompat:appcompat:1.6.1 (*)
|    |    \--- com.mapbox.mapboxsdk:mapbox-android-sdk:8.0.0 -> 9.6.2 (*)
|    +--- com.android.support:design:28.0.0 -> com.google.android.material:material:1.10.0
|    |    +--- androidx.activity:activity:1.8.0 (*)
|    |    +--- androidx.annotation:annotation:1.2.0 -> 1.7.0 (*)
|    |    +--- androidx.appcompat:appcompat:1.6.1 (*)
|    |    +--- androidx.cardview:cardview:1.0.0
|    |    |    \--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    +--- androidx.coordinatorlayout:coordinatorlayout:1.1.0
|    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    +--- androidx.core:core:1.1.0 -> 1.9.0 (*)
|    |    |    +--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
|    |    |    \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    +--- androidx.constraintlayout:constraintlayout:2.0.1 -> 2.1.4
|    |    +--- androidx.core:core:1.6.0 -> 1.9.0 (*)
|    |    +--- androidx.drawerlayout:drawerlayout:1.1.1 (*)
|    |    +--- androidx.dynamicanimation:dynamicanimation:1.0.0
|    |    |    +--- androidx.core:core:1.0.0 -> 1.9.0 (*)
|    |    |    +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    |    \--- androidx.legacy:legacy-support-core-utils:1.0.0
|    |    |         +--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    |         +--- androidx.core:core:1.0.0 -> 1.9.0 (*)
|    |    |         +--- androidx.documentfile:documentfile:1.0.0
|    |    |         |    \--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    |         +--- androidx.loader:loader:1.0.0 (*)
|    |    |         +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
|    |    |         |    \--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    |         \--- androidx.print:print:1.0.0
|    |    |              \--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |    +--- androidx.annotation:annotation-experimental:1.0.0 -> 1.3.0 (*)
|    |    +--- androidx.fragment:fragment:1.2.5 -> 1.6.0 (*)
|    |    +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.6.2 (*)
|    |    +--- androidx.recyclerview:recyclerview:1.0.0 -> 1.2.1
|    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    +--- androidx.core:core:1.3.2 -> 1.9.0 (*)
|    |    |    \--- androidx.customview:customview:1.0.0 -> 1.1.0 (*)
|    |    +--- androidx.resourceinspection:resourceinspection-annotation:1.0.1
|    |    +--- androidx.transition:transition:1.2.0 -> 1.4.1
|    |    |    +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |    |    \--- androidx.core:core:1.1.0 -> 1.9.0 (*)
|    |    +--- androidx.vectordrawable:vectordrawable:1.1.0 (*)
|    |    \--- androidx.viewpager2:viewpager2:1.0.0
|    |         +--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    |         +--- androidx.fragment:fragment:1.1.0 -> 1.6.0 (*)
|    |         +--- androidx.recyclerview:recyclerview:1.1.0 -> 1.2.1 (*)
|    |         +--- androidx.core:core:1.1.0 -> 1.9.0 (*)
|    |         \--- androidx.collection:collection:1.1.0 (*)
|    +--- com.android.support:recyclerview-v7:28.0.0 -> androidx.recyclerview:recyclerview:1.2.1 (*)
|    +--- com.android.support.constraint:constraint-layout:1.1.3 -> androidx.constraintlayout:constraintlayout:2.1.4
|    +--- com.android.support:cardview-v7:28.0.0 -> androidx.cardview:cardview:1.0.0 (*)
|    +--- android.arch.lifecycle:extensions:1.1.1 -> androidx.lifecycle:lifecycle-extensions:2.0.0
|    |    +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.6.2 (*)
|    |    +--- androidx.arch.core:core-common:2.0.0 -> 2.2.0 (*)
|    |    +--- androidx.arch.core:core-runtime:2.0.0 -> 2.2.0 (*)
|    |    +--- androidx.fragment:fragment:1.0.0 -> 1.6.0 (*)
|    |    +--- androidx.lifecycle:lifecycle-common:2.0.0 -> 2.6.2 (*)
|    |    +--- androidx.lifecycle:lifecycle-livedata:2.0.0 -> 2.6.2 (*)
|    |    +--- androidx.lifecycle:lifecycle-process:2.0.0 -> 2.6.2
|    |    |    +--- androidx.annotation:annotation:1.2.0 -> 1.7.0 (*)
|    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (*)
|    |    |    +--- androidx.startup:startup-runtime:1.1.1
|    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |    |    +--- androidx.lifecycle:lifecycle-common:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-service:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 (c)
|    |    |    \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2 (c)
|    |    +--- androidx.lifecycle:lifecycle-service:2.0.0 -> 2.6.2
|    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (*)
|    |    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |    |    +--- androidx.lifecycle:lifecycle-common:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-process:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-runtime-ktx:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-viewmodel:2.6.2 (c)
|    |    |    +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 (c)
|    |    |    \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2 (c)
|    |    \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.6.2 (*)
|    +--- com.squareup.picasso:picasso:2.71828
|    |    +--- com.squareup.okhttp3:okhttp:3.10.0 -> 4.10.0 (*)
|    |    +--- com.android.support:support-annotations:27.1.0 -> androidx.annotation:annotation:1.7.0 (*)
|    |    \--- com.android.support:exifinterface:27.1.0 -> androidx.exifinterface:exifinterface:1.3.2
|    |         \--- androidx.annotation:annotation:1.1.0 -> 1.7.0 (*)
|    \--- com.jakewharton.timber:timber:4.7.1 (*)
+--- com.mapbox.navigation:android:2.5.1
|    +--- com.mapbox.navigation:core:2.5.1
|    |    +--- com.mapbox.base:common:0.8.0
|    |    +--- com.mapbox.navigation:base:2.5.1
|    |    |    +--- com.mapbox.mapboxsdk:mapbox-android-core:5.0.1
|    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-directions-models:6.5.0 (*)
|    |    |    \--- com.mapbox.mapboxsdk:mapbox-sdk-core:6.5.0 (*)
|    |    +--- com.mapbox.common:common:21.3.1 -> 24.0.0 (*)
|    |    \--- androidx.lifecycle:lifecycle-runtime-ktx:2.4.0 -> 2.6.2
|    |         +--- androidx.annotation:annotation:1.0.0 -> 1.7.0 (*)
|    |         +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (*)
|    |         +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.22 (*)
|    |         +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 (*)
|    |         +--- androidx.lifecycle:lifecycle-common:2.6.2 (c)
|    |         +--- androidx.lifecycle:lifecycle-livedata:2.6.2 (c)
|    |         +--- androidx.lifecycle:lifecycle-livedata-core:2.6.2 (c)
|    |         +--- androidx.lifecycle:lifecycle-livedata-core-ktx:2.6.2 (c)
|    |         +--- androidx.lifecycle:lifecycle-process:2.6.2 (c)
|    |         +--- androidx.lifecycle:lifecycle-runtime:2.6.2 (c)
|    |         +--- androidx.lifecycle:lifecycle-service:2.6.2 (c)
|    |         +--- androidx.lifecycle:lifecycle-viewmodel:2.6.2 (c)
|    |         +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2 (c)
|    |         \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.2 (c)
|    +--- com.mapbox.navigation:ui-maneuver:2.5.1
|    |    +--- com.mapbox.navigation:ui-shields:2.5.1
|    |    |    +--- com.mapbox.navigation:ui-base:2.5.1
|    |    |    |    +--- com.mapbox.navigation:base:2.5.1 (*)
|    |    |    |    +--- com.mapbox.navigation:core:2.5.1 (*)
|    |    |    |    +--- com.mapbox.navigation:ui-utils:2.5.1
|    |    |    |    |    +--- com.mapbox.navigation:utils:2.5.1
|    |    |    |    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-directions-models:6.5.0 (*)
|    |    |    |    |    |    +--- com.mapbox.common:common:21.3.1 -> 24.0.0 (*)
|    |    |    |    |    |    +--- com.mapbox.base:common:0.8.0
|    |    |    |    |    |    \--- androidx.databinding:viewbinding:7.0.4 -> 7.3.1 (*)
|    |    |    |    |    \--- com.caverock:androidsvg-aar:1.4
|    |    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:6.5.0 -> 6.9.0 (*)
|    |    |    |    +--- androidx.core:core:1.6.0 -> 1.9.0 (*)
|    |    |    |    \--- androidx.annotation:annotation:1.2.0 -> 1.7.0 (*)
|    |    |    \--- androidx.databinding:viewbinding:7.0.4 -> 7.3.1 (*)
|    |    \--- androidx.databinding:viewbinding:7.0.4 -> 7.3.1 (*)
|    +--- com.mapbox.navigation:ui-maps:2.5.1
|    |    +--- com.mapbox.navigation:ui-base:2.5.1 (*)
|    |    +--- com.mapbox.navigation:ui-shields:2.5.1 (*)
|    |    +--- com.mapbox.maps:android:10.5.0 -> 11.0.0 (*)
|    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-turf:6.5.0 (*)
|    |    \--- androidx.databinding:viewbinding:7.0.4 -> 7.3.1 (*)
|    +--- com.mapbox.navigation:ui-shields:2.5.1 (*)
|    +--- com.mapbox.navigation:ui-speedlimit:2.5.1
|    |    +--- com.mapbox.navigation:ui-base:2.5.1 (*)
|    |    \--- androidx.databinding:viewbinding:7.0.4 -> 7.3.1 (*)
|    +--- com.mapbox.navigation:ui-tripprogress:2.5.1
|    |    +--- com.mapbox.navigation:ui-base:2.5.1 (*)
|    |    \--- androidx.databinding:viewbinding:7.0.4 -> 7.3.1 (*)
|    +--- com.mapbox.navigation:ui-voice:2.5.1
|    |    +--- com.mapbox.navigation:ui-base:2.5.1 (*)
|    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-services:6.5.0 (*)
|    |    \--- androidx.databinding:viewbinding:7.0.4 -> 7.3.1 (*)
|    +--- com.mapbox.navigation:ui-status:2.5.1
|    |    +--- com.mapbox.navigation:ui-base:2.5.1 (*)
|    |    \--- androidx.databinding:viewbinding:7.0.4 -> 7.3.1 (*)

``

Expected behavior

Should build without duplicate class error.

Notes / preliminary analysis

I tried to remove the duplicates from build.gradle as below.

    implementation 'com.mapbox.maps:android:11.0.0'
    implementation ("com.mapbox.mapboxsdk:mapbox-android-plugin-offline-v9:0.9.0", {
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry'
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry-okhttp3'
        exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-core'
    })
    implementation ("com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.42.6", {
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry'
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry-okhttp3'
        exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-core'
    })
    implementation ("com.mapbox.navigation:android:2.5.1", {
        exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-core'
    })

But, I am still getting duplicate class error.

Duplicate class com.mapbox.common.module.okhttp.CallbackWrapper found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.CallbackWrapper$RequestCallback found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.HttpCallback found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.IdGenerator found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.LazyClient found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$1 found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$HttpServiceOfflineSwitchObserver found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.module.Mapbox_HttpClientModuleConfiguration found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)

I tried to exclude differently as below.

   implementation ('com.mapbox.maps:android:11.0.0', {
        exclude group: 'com.mapbox.mapboxsdk', module: 'mapbox-android-core'
    })
    implementation ("com.mapbox.mapboxsdk:mapbox-android-plugin-offline-v9:0.9.0", {
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry'
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry-okhttp3'
    })
    implementation ("com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.42.6", {
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry'
        exclude group: 'com.mapbox.mapboxsdk', module:'mapbox-android-telemetry-okhttp3'
    })
    implementation "com.mapbox.navigation:android:2.5.1"

But, still have duplicate class error.

Duplicate class com.mapbox.android.core.permissions.PermissionsListener found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-mapbox-android-core-5.0.1-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.1)
Duplicate class com.mapbox.android.core.permissions.PermissionsManager found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-mapbox-android-core-5.0.1-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.1)
Duplicate class com.mapbox.android.core.permissions.PermissionsManager$AccuracyAuthorization found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-mapbox-android-core-5.0.1-runtime (com.mapbox.mapboxsdk:mapbox-android-core:5.0.1)
Duplicate class com.mapbox.common.module.okhttp.CallbackWrapper found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.CallbackWrapper$RequestCallback found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.HttpCallback found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.IdGenerator found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.LazyClient found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$1 found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$HttpServiceOfflineSwitchObserver found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)
Duplicate class com.mapbox.module.Mapbox_HttpClientModuleConfiguration found in modules jetified-common-24.0.0-runtime (com.mapbox.common:common:24.0.0) and jetified-okhttp-21.3.1-runtime (com.mapbox.common:okhttp:21.3.1)

I can't figure out how to fix duplicate class build error. Any suggestions? I would really appreciate your help.

kiryldz commented 9 months ago

Closing as duplicate of https://github.com/mapbox/mapbox-navigation-android/issues/7652