Logo

dev-resources.site

for different kinds of informations.

react-native duplicate class problem

Published at
10/4/2024
Categories
reactnative
gradle
javascript
android
Author
mzakk
Author
5 person written this
mzakk
open
react-native duplicate class problem

So, i'ave added to my react-native project two libraries:

    "react-native-chainway-c71": "^0.1.15",
    "uhf-reader-react-native": "^0.0.18"
Enter fullscreen mode Exit fullscreen mode

And I got this error during the build; I don't know how to fix it. The only thing I know is that these classes came from those two libraries.

Can somebody help me set up build.gradle to solve this?

     Duplicate class com.rscja.deviceapi.interfaces.IURAxOfAndroidUart found in modules SdkTest-0.0.1.aar -> SdkTest-0.0.1-runtime (com.github.oreste-abizera:SdkTest:0.0.1) an
d classes.jar -> classes (classes.jar)
     Duplicate class com.rscja.deviceapi.interfaces.IUhfBle found in modules SdkTest-0.0.1.aar -> SdkTest-0.0.1-runtime (com.github.oreste-abizera:SdkTest:0.0.1) and classes.j
ar -> classes (classes.jar)
     Duplicate class com.rscja.deviceapi.interfaces.IUhfReader found in modules SdkTest-0.0.1.aar -> SdkTest-0.0.1-runtime (com.github.oreste-abizera:SdkTest:0.0.1) and classe
s.jar -> classes (classes.jar)
     Duplicate class com.rscja.deviceapi.interfaces.IUpgradeProgress found in modules SdkTest-0.0.1.aar -> SdkTest-0.0.1-runtime (com.github.oreste-abizera:SdkTest:0.0.1) and 
classes.jar -> classes (classes.jar)
     Duplicate class com.rscja.deviceapi.interfaces.IUsbFingerprint found in modules SdkTest-0.0.1.aar -> SdkTest-0.0.1-runtime (com.github.oreste-abizera:SdkTest:0.0.1) and c
lasses.jar -> classes (classes.jar)
     Duplicate class com.rscja.deviceapi.interfaces.KeyEventCallback found in modules SdkTest-0.0.1.aar -> SdkTest-0.0.1-runtime (com.github.oreste-abizera:SdkTest:0.0.1) and 
classes.jar -> classes (classes.jar)
     Duplicate class com.rscja.deviceapi.interfaces.ScanBTCallback found in modules SdkTest-0.0.1.aar -> SdkTest-0.0.1-runtime (com.github.oreste-abizera:SdkTest:0.0.1) and cl
asses.jar -> classes (classes.jar)
     Duplicate class com.rscja.scanner.IScanner found in modules SdkTest-0.0.1.aar -> SdkTest-0.0.1-runtime (com.github.oreste-abizera:SdkTest:0.0.1) and classes.jar -> classe
s (classes.jar)
Enter fullscreen mode Exit fullscreen mode
gradle Article's
30 articles in total
Favicon
Understanding (a bit of) the Gradle Kotlin DSL
Favicon
Zero Config Spring Batch: Just Write Business Logic
Favicon
JeKa: The Simplest Way to Create Uber and Shade Jars
Favicon
JeKa: The Simplest Way to Publish on Maven Central
Favicon
Gradle extensions part 2: Now with shenanigans
Favicon
Wednesday Links - Edition 2024-11-27
Favicon
A brand new Java scaffolding has been born today for Make Java Great Again!
Favicon
Wednesday Links - Edition 2024-10-16
Favicon
Gradle 8.11: Faster Configuration Cache and Improved Configuration Time
Favicon
react-native duplicate class problem
Favicon
Breaking the build 😝 : Demystifying Gradle
Favicon
Wednesday Links - Edition 2024-09-11
Favicon
One click dependencies fix
Favicon
ACAB: Fire the (code style) cop in your head
Favicon
Telltale: Automating Experimentation in Gradle Builds
Favicon
Minecraft Modpack Development Update: Beta Test and Musical Additions
Favicon
Gradle upgrade
Favicon
Announcing Dependency Analysis Gradle Plugin 2.0.0!
Favicon
Wednesday Links - Edition 2024-07-24
Favicon
Resource observability case study: jemalloc in Android builds
Favicon
How store signing keystore.
Favicon
Simple way to store secrets in Android Project.
Favicon
Developing a Custom Gradle Plugin for Formatting and Static Analysis
Favicon
Gradle Commands Cheat Sheet
Favicon
Wednesday Links - Edition 2024-04-24
Favicon
Gradle DSL: Configurando JaCoco
Favicon
Unearthing the Quirk: Dealing with File Access Issues that arise from Resource Optimization in Android Applications
Favicon
🍒 Cherry-Picked Nx v18.2 Updates
Favicon
Making Your Android Project Modular With Convention Plugins
Favicon
Kradle 9.0: Revolutionizing the JVM Ecosystem with Kotlin at its Core!

Featured ones: