regulaforensics / react-native-document-reader

React-Native Framework for reading and validation of identification documents
19 stars 10 forks source link

Duplicate Class Error in Android #15

Closed UsamaIkraam0099 closed 2 years ago

UsamaIkraam0099 commented 2 years ago

Bug Description Duplicate Class Error in Android After installing "@regulaforensics/react-native-document-reader-core-ocrandmrz": "^6.4.0" in React Native

Steps To Reproduce

Expected behavior It should be work perfictely

Screenshots Screenshot 2022-07-25 at 4 58 37 PM

Environment:

Additional context Im using "@regulaforensics/react-native-document-reader-core-doctype": "^6.4.0" for passport scanning and its working fine but I also need to scan credit card so I go with "@regulaforensics/react-native-document-reader-core-ocrandmrz": "^6.4.0" so after installing this dependency Im not able to run the android project again.

UsamaIkraam0099 commented 2 years ago

@PavelMasuk @DmitrySmolyakov

Above I mention the screenshot of error. Any kind of help would be appreciated.

Thanks,

vyakimchik commented 2 years ago

Hello,

Thanks for reaching out to us!

It seems that you've added the ocrandmrz plugin in addition to the doctype one. This is not the correct way - you need to remove the doctype plugin, and use only ocrandmrz - it already contains the doctype Core functionality.

Please let us know when you try this suggestion.

UsamaIkraam0099 commented 2 years ago

Hi @vyakimchik

Yes, your suggestion works. Thanks for you response