DEV Community

mzakk
mzakk

Posted on

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

Top comments (0)