react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

Android build failed with RN 0.63.1

Open dariuszsobkowicz opened this issue 6 years ago • 4 comments

What react-native version are you using? 0.63.1

What react-native-pdf version are you using? 6.2.0

What platform does your issue occur on? (android/ios/both) android

Describe your issue as precisely as possible : I am trying to use react-native-pdf on a new instance npx react-native init MyTestApp and run android, but the error is Task: app: mergeDebugNativeLibs FAILED, without 'react-native-pdf' works fine.

Join a screenshot or video of the problem on the simulator or device? Screenshot 2020-07-20 at 18 01 47

dariuszsobkowicz avatar Jul 20 '20 16:07 dariuszsobkowicz

yes same happening to me. I tried to link those dependency manually still getting the error while running on android . then i have to manually unlink and delete all the dependency for getting rid those build error still waiting to get fixed the error. @dariuszsobkowicz @wonday side note i am using react-native 0.63.2

BuddhaNag12 avatar Jul 26 '20 17:07 BuddhaNag12

I solved the issue by these following steps If you use RN 0.59.0 and above, please add following to your android/app/build.gradle**

android { 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' } }

If you are facing any further issue please report or close this issue..

BuddhaNag12 avatar Jul 26 '20 17:07 BuddhaNag12

I solved the issue by these following steps If you use RN 0.59.0 and above, please add following to your android/app/build.gradle** android { 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' } }

If you are facing any further issue please report or close this issue..

This work to my.

joaogn avatar Sep 21 '20 03:09 joaogn

This is not failing to me anymore. Using React Native 80.1

kota-henrique avatar Sep 08 '25 17:09 kota-henrique