I'm trying to add a Facebook Login on my react native project using react-native-fbsdk library, but I am getting error while running react-native run-android.
Here's the screenshot of the error:
I have clearly followed the installation instructions from their github repo: https://github.com/facebook/react-native-fbsdk
I tried most of the solutions found on SO but couldn't make it run.
I have following versions installed:
react-native#0.47.1
react-native-fbsdk#0.6.0
This is due to breaking change in 0.47.1 which affects most of the native dependencies. In case of react-native-fbsdk, they has yet to release new version. So if you use following version, it would be fine.
react-native : 0.46.4
react-native-fbsdk : 0.6.1
Related
Error description
After the App builds successfully, I got this error at my Metro while trying to install the app.
My react-native version is 0.70.
This the error:
Error: Exception in HostFunction: java.lang.UnsatisfiedLinkError: dlopen failed: library "libreanimated.so" not found
This can happen for other reasons as well. For me, it happened because in the
android\gradle.properties file I did not enable the Architecture that I was trying to deploy to:
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
Make sure, the Emulator Arch or if you are using a physical device then that Arch is enabled in the above line.
The error is coming because of react-native-reanimated library either remove the library or
Use latest version
And
Go to root folder
cd android && ./gradlew clean
or check this
https://github.com/software-mansion/react-native-reanimated/pull/3551/commits/25defa25d22a50dc068ac720ac4f3d7bde76aa17
I think you didn't add the proguard rules inside the android app folder and follow the instructions they had given on the website
https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation
Moreover, if you are using the react native version 0.68 & docs say to install the library which react native reanimated#next but it produces an error (merging error with the Hermes) until now there is no stable version of the reanimated library for the react native v0.70. Installing the lower version(stable version) is a better move than doing with the latest version
i'm using ionic and i try to run my app in android studio. On Ios everything is working fine but android studio is always saying please add configuration. I actually have no idea how to add a configuration. Also my project contains three packages. I'm building my project with the following commands:
ionic build
npx cap sync
npx cap open android
Also android studio cannot resolve some libraries.
Please find attached a screenshot of the errors i have mentioned above:
thank you
I had this same issue, and I think it was a few problems compounded. It looks like you shouldn't have to add configurations manually, so if the "app" configuration doesn't appear automatically then something is wrong. I ran
ionic cap build android
which built everything and launched android studio. If that doesn't fix it, you might be missing some sdks. Try running this command from your android folder.
./gradlew assembleDebug
Mine complained about missing a specific version of the android sdk which I had to install with the android studio sdk manager. Then I relaunched android studio, and the "app" configuration was there.
Using the latest version of Firebase for Flutter and tried running the application. but unfortunately having a load of errors which makes no sense to me.
https://i.stack.imgur.com/ggbZi.png, https://gofile.io/d/b6RmlQ, https://gofile.io/d/FZBg2O, https://gofile.io/d/yCRUcy
The flutter Firebase implementations uses native code under the hood. The errors are stating that the native classes are not found.
This is likely because of a dependency missing.
Try to flutter clean then flutter pub get and check if it works.
I am trying to run an existing react native app on android platform and I am getting the error as in the below image. I have already followed all the steps mentioned under http://invertase.link/android, but I still am facing this error.
I am a complete beginner in react native, have already exhausted all the solutions available on the web and this post is my last resort.
You have to add import io.invertase.firebase.RNFirebasePackage; and new RNFirebasePackage() in the MainApplication.java
In my case I deleted my app from emulator and reinstall that by giving the command (react-native run-android) and that process worked for me.
I had this same exact issue, and the underlying issue was that Invertase's starter project was already ejected from Expo and utilizing native modules. Expo was unable to link those. To integrate Firebase in Expo, I redid my project using create-react-native-app, copied all the source JS files over, then followed this guide, doing npm install --save firebase. I had to reinstall all the dependencies again with npm, but integrating Firebase was much easier.
i'm using react-native-cli : 2.0.1 and react-native : 0.50.1.
When i'm using a debug version it's works fine, but when i'm trying to build a release version the apps don't start and crash. i already followed the steps from the official website. i try to debug it with logcat and get this error
i resolve this problem by upgrading react-native to 0.50.3 using this step and now it's working perfectly !