mapbox / mapbox/mapbox-maps-flutter
Conflict issue.
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 380
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Description
Hello ,
I hope you are doing well. I'm implementing mapbox_map_flutter package in flutter. It's working fine.
But when I add another package flutter_mapbox_navigation then create conflict. I'm paste the error.
---> show me this error
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class com.mapbox.common.module.okhttp.CallbackWrapper found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Duplicate class com.mapbox.common.module.okhttp.CallbackWrapper$RequestCallback found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Duplicate class com.mapbox.common.module.okhttp.HttpCallback found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Duplicate class com.mapbox.common.module.okhttp.IdGenerator found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Duplicate class com.mapbox.common.module.okhttp.LazyClient found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$1 found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$HttpServiceGetLifecycleStateCallback found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$HttpServiceLifecycleObserver found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Duplicate class com.mapbox.common.module.okhttp.MapboxOkHttpService$HttpServiceOfflineSwitchObserver found in modules jetified-common-24.3.1-runtime (com.mapbox.common:common:24.3.1) and jetified-okhttp-23.8.0-runtime (com.mapbox.common:okhttp:23.8.0)
Ping : jahan665577@gmail.com
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Android build with both mapbox_map_flutter and flutter_mapbox_navigation enabled, then inspect the reported duplicate classes from com.mapbox.common:common:24.3.1 and com.mapbox.common:okhttp:23.8.0. Done means the project builds without checkDebugDuplicateClasses failures while both packages remain usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, dart, flutter
- Domain
- build-system, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100