react-native: MainApplication.onCreate: java.lang.UnsatisfiedLinkError - dlopen failed: "/data/data/com.patenteapp/lib-3/libc++_shared.so" is for EM_AARCH64 (183) instead of EM_X86_64 (62)

Description

Fatal Exception: java.lang.UnsatisfiedLinkError couldn’t find DSO to load: libhermes.so caused by: couldn’t find DSO to load: libjsi.so caused by: couldn’t find DSO to load: libfolly_runtime.so caused by: couldn’t find DSO to load: libglog.so caused by: couldn’t find DSO to load: libc++_shared.so caused by: dlopen failed: “/data/data/com.patenteapp/lib-3/libc++_shared.so” is for EM_AARCH64 (183) instead of EM_X86_64 (62) result: 0 result: 0 result: 0 result: 0 result: 0

React Native Version

0.70.10

Output of npx react-native info

System: OS: macOS 13.1 CPU: (8) arm64 Apple M1 Pro Memory: 76.67 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 20.3.0 - /opt/homebrew/bin/node Yarn: 1.22.17 - /opt/homebrew/bin/yarn npm: 9.6.7 - /opt/homebrew/bin/npm Watchman: 2023.03.27.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /Users/mdrobiullah/.rvm/gems/ruby-3.0.0/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2022.1 AI-221.6008.13.2211.9514443 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.14.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.10 => 0.70.10 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

It randomly happens in my live app.

image

Snack, code example, screenshot, or link to a repository

What code do I have to paste here?

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 27 (1 by maintainers)

Most upvoted comments

Same with @rvasseur31 . Observing this error on Firebase Crashlytics on rooted OnePlus8Pro (Android 11)

Got the same error for the same device OnePlus8Pro (Android 11).

Same with @rvasseur31 . Observing this error on Firebase Crashlytics on rooted OnePlus8Pro (Android 11)

same thing here

Getting the same issue on some devices:

Nexus5X OnePlus8Pro

React-Native 0.72.4 Android NDK 23.1.7779620 minSdkVersion 21 compileSdkVersion 33 targetSdkVersion 33

I can share logs or stack traces if needed.

We would need a consistent reproducer to handle those type of issues

Same with @rvasseur31 . Observing this error on Firebase Crashlytics on rooted OnePlus8Pro (Android 11)

Got the same error for the same device OnePlus8Pro (Android 11).

image Same toooo

+1 - one of my users has this on a OnePlus8Pro

For information, I too have this bug report on Firebase Crashlytics. While analyzing the bug, I noticed that it had occurred 6 times in total, even though my application had not been officially validated by Google. Validation date and time: June 5, 15:45 Date and time of first crash: May 31, 15:51:47 Date and time of last crash: June 1, 13:12:07

NB. This is the same version and the same build version, and I had activated managed publication. NB2. Many crashes on at least 5 of our apps I have on Firebase Crashlytics occur on a rooted OnePlus8Pro.