Jadi, saya telah menambah dua perpustakaan projek asli reaksi saya:
"react-native-chainway-c71": "^0.1.15", "uhf-reader-react-native": "^0.0.18"
Dan saya mendapat ralat ini semasa membina; Saya tidak tahu bagaimana untuk memperbaikinya. Satu-satunya perkara yang saya tahu ialah kelas ini datang daripada dua perpustakaan tersebut.
Bolehkah seseorang membantu saya menyediakan build.gradle untuk menyelesaikan masalah ini?
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)
Atas ialah kandungan terperinci masalah kelas pendua reaksi asli. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!