Closed jedabero closed 5 years ago
Hello, anyone find a fix or cause of this?
+1
No template, makes it hard to solve. Can re-open if you follow the template
Oh sorry . thought this was the main repo which has a template. The starter does not.
When you say "after adding ..." what I'll need is the full steps from git clone on the starter to the error - every command run or file edited, so a reproduction is possible
1.1) git clone https://github.com/invertase/react-native-firebase-starter.git
1.2) cd react-native-firebase-starter
1.3) yarn
2.1) yarn rename
3.3) Follow the manually add firebase to your app instructions here to generate your google-services.json file if you haven't done so already - use the package name generated previously as your Android package name.
3.4) Place this file in the android/app/
directory of your project.
A trial build can be run here to check everything is ok, it should be anyway.
4.1) yarn add rn-fetch-blob
4.2) RNFB_ANDROID_PERMISSIONS=true react-native link rn-fetch-blob
4.3) yarn add react-native-pdf
4.4) react-native link react-native-pdf
4.5) Add the following in 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'
+ }
}
5.1) react-native run-android
I believe this is a gradle cache issue actually
https://github.com/invertase/react-native-firebase/issues/1859#issuecomment-506624299
I believe this is a gradle cache issue actually
Thank's. i solve this with folowing:
cd android
./gradlew clean
After adding https://github.com/wonday/react-native-pdf to this starter I get the following error:
Which is weird because before this starter was updated to use v5.3.1 that error never happened