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)
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)
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.
Environment
Observed behavior and steps to reproduce
I've updated mapbox version to 11.0.0 from 10.9.1.
`
But, I'm getting a build failure related to duplicate classes:
`
`
The dependency tree is included below.
``
Expected behavior
Should build without duplicate class error.
Notes / preliminary analysis
I tried to remove the duplicates from build.gradle as below.
But, I am still getting duplicate class error.
I tried to exclude differently as below.
But, still have duplicate class error.
I can't figure out how to fix duplicate class build error. Any suggestions? I would really appreciate your help.