Open swanand6300 opened 3 years ago
Did you find anything i just ran into the same issue :( ?
Same for me.
I figured out i had react-native-pdf and react-native-pdf-view as dependencies, remooving one solved the issue for me.
In my case I had react-native-html-to-pdf which was causing this duplicate classes issue but actually my case was quite different.
Guy ! I resolve that problem like this: In app/build.gradle
android { configurations { all*.exclude module: 'android-pdf-viewer' } ... packagingOptions { pickFirst 'lib/x86/libc++_shared.so' pickFirst 'lib/x86_64/libjsc.so' pickFirst lib/arm64-v8a/libjsc.so' pickFirst 'lib/arm64-v8a/libc++_shared.so' pickFirst 'lib/x86_64/libc++_shared.so' pickFirst 'lib/armeabi-v7a/libc++_shared.so' } }
https://github.com/wonday/react-native-pdf/issues/534#issuecomment-784240256 @
this one works!
& This is just basic configuration of react-native-pdf in NPM.(https://www.npmjs.com/package/react-native-pdf)
Facing this issue with react-native-html-to-pdf, can someone guide me how to solve it?
react-native
version: 0.62.1react-native-pdf
version: 6.2.0Platform: iOS
Run this command react-native run-android
Logs:
Execution failed for task ':app:checkDebugDuplicateClasses'.