mauron85 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
1.33k stars 561 forks source link

gradlew assembleRelease failed for task ':app:checkReleaseDuplicateClasses' #526

Open peyman-hakemi opened 3 years ago

peyman-hakemi commented 3 years ago

Your Environment

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 commented 3 years ago

@mauron85 can you please help me