flutter_mapbox_navigation icon indicating copy to clipboard operation
flutter_mapbox_navigation copied to clipboard

Problem while using with mapbox_gl plugin

Open Satendra124 opened this issue 4 years ago • 2 comments

While using mapbox_gl flutter package and this package together there is this error:


* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class com.mapbox.mapboxsdk.plugins.annotation.Annotation found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.AnnotationManager found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.AnnotationManager$1 found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.AnnotationManager$1$1 found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.AnnotationManager$MapClickResolver found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.BuildConfig found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.Circle found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.CircleElementProvider found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.CircleManager found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.CircleOptions found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.ConvertUtils found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.CoreElementProvider found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.DraggableAnnotationController found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.DraggableAnnotationController$1 found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.DraggableAnnotationController$AnnotationMoveGestureListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.Fill found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.FillElementProvider found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.FillManager found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.FillOptions found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.Line found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.LineElementProvider found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.LineManager found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.LineOptions found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnAnnotationClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnAnnotationDragListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnAnnotationLongClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnCircleClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnCircleDragListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnCircleLongClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnFillClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnFillDragListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnFillLongClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnLineClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnLineDragListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnLineLongClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnSymbolClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnSymbolDragListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.OnSymbolLongClickListener found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.Options found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.Symbol found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.SymbolElementProvider found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.SymbolManager found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)
  Duplicate class com.mapbox.mapboxsdk.plugins.annotation.SymbolOptions found in modules classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v8:0.7.0) and classes.jar (com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0)

  Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 29s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Satendra124 avatar Mar 01 '21 07:03 Satendra124

I have the same problem

luis901101 avatar Mar 17 '21 20:03 luis901101

This is a duplicate of issue 62 Here there is a fix

luis901101 avatar Mar 17 '21 21:03 luis901101

Stale issue message

eopeter avatar May 24 '23 01:05 eopeter