插件窝 干货文章 React-Native重复类问题

React-Native重复类问题

SdkTest classes class 735    来源:    2024-10-19

所以,我在我的react-native项目中添加了两个库:


    "react-native-chainway-c71": "^0.1.15",
    "uhf-reader-react-native": "^0.0.18"


我在构建过程中遇到了这个错误;我不知道如何解决它。我唯一知道的是这些类来自这两个库。

有人可以帮我设置 build.gradle 来解决这个问题吗?


     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)