react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

gradlew assembleRelease failed for task ':app:checkReleaseDuplicateClasses'

Open peyman-hakemi opened this issue 5 years ago • 1 comments

Your Environment

  • Plugin version: 0.6.3
  • Platform: Android
  • OS version: windows
  • Device manufacturer and model:
  • Running in Simulator:
  • React Native version: 0.63.2
  • Plugin configuration options:
  • Link to your project:

Context

when i want to build a apk or run my project with react-native run android it fail because of conflict between this library and some other libraries and when i delete this library every thing run perfectly

Expected Behavior

i like to generate a apk for my application or run it on my device but ...

Actual Behavior

this is the error it gave me

Execution failed for task ':app:checkReleaseDuplicateClasses'.

1 exception was raised by workers: java.lang.RuntimeException: Duplicate class org.slf4j.impl.StaticLoggerBinder found in modules logback-android-1.1.1-9-runtime.jar (com.github.tony19:logback-android:1.1.1-9) and slf4j-simple-1.7.25.jar (org.slf4j:slf4j-simple:1.7.25) Duplicate class org.slf4j.impl.StaticMDCBinder found in modules logback-android-1.1.1-9-runtime.jar (com.github.tony19:logback-android:1.1.1-9) and slf4j-simple-1.7.25.jar (org.slf4j:slf4j-simple:1.7.25) Duplicate class org.slf4j.impl.StaticMarkerBinder found in modules logback-android-1.1.1-9-runtime.jar (com.github.tony19:logback-android:1.1.1-9) and slf4j-simple-1.7.25.jar (org.slf4j:slf4j-simple:1.7.25)

Possible Fix

i want to know how can i resolve the conflict for this org.slf4j

Steps to Reproduce

Context

Debug logs

peyman-hakemi avatar Jan 04 '21 18:01 peyman-hakemi

@mauron85 can you please help me

peyman-hakemi avatar Jan 23 '21 15:01 peyman-hakemi