Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreactnativejni.so

This issue has been created since 2022-11-13.

Description

The app is crashing when anyone tries to rename the package of the release build with the cloner app & launching it. In firebase, issue is reported several times with a rooted package name.

Version

0.66.5

Output of npx react-native info

info Fetching system and libraries information...
System:
OS: macOS 12.5.1
CPU: (8) x64 Apple M1
Memory: 27.25 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.17.3 - /usr/local/bin/node
Yarn: 1.22.10 - /opt/homebrew/bin/yarn
npm: 7.19.1 - /opt/homebrew/bin/npm
Watchman: 2021.06.07.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK:
API Levels: 28, 29, 30, 31
Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0
System Images: android-30 | ARM 64 v8a, android-30 | Google APIs ARM 64 v8a, android-30 | Google APIs Intel x86 Atom, android-31 | Google APIs ARM 64 v8a
Android NDK: 25.0.8775105
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_292 - /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.66.5 => 0.66.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

  1. Install the release build,
  2. Try to clone the app with any clone app. I am checking with 'App Cloner',
  3. After cloning, Launch the cloned app. It is crashing

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

Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreactnativejni.so
SoSource 0: com.facebook.soloader.DirectorySoSource[root = /data/app/~~W5UKy_NhWL8_GfKnhlz_-w==/com.dealsharh-iaGWcq1hRCBtTdXYG3nNZw==/lib/arm64 flags = 0]
SoSource 1: com.facebook.soloader.DirectApkSoSource[root = (/data/app/~~W5UKy_NhWL8_GfKnhlz_-w==/com.dealsharh-iaGWcq1hRCBtTdXYG3nNZw==/base.apk!/lib/arm64-v8a, )]
SoSource 2: com.facebook.soloader.DirectorySoSource[root = /system/lib64 flags = 2]
SoSource 3: com.facebook.soloader.DirectorySoSource[root = /vendor/lib64 flags = 2]
Native lib dir: /data/app/~~W5UKy_NhWL8_GfKnhlz_-w==/com.dealsharh-iaGWcq1hRCBtTdXYG3nNZw==/lib/arm64
result: 0
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1127)
at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:34)
at com.facebook.react.bridge.NativeMap.(NativeMap.java:17)
at com.facebook.react.bridge.Arguments.createMap(Arguments.java:159)
at io.invertase.firebase.messaging.ReactNativeFirebaseMessagingSerializer.remoteMessageToWritableMap(ReactNativeFirebaseMessagingSerializer.java:69)
at io.invertase.firebase.messaging.ReactNativeFirebaseMessagingStoreImpl.storeFirebaseMessage(ReactNativeFirebaseMessagingStoreImpl.java:28)
at io.invertase.firebase.messaging.ReactNativeFirebaseMessagingReceiver.onReceive(ReactNativeFirebaseMessagingReceiver.java:33)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:4628)
at android.app.ActivityThread.access$1900(ActivityThread.java:284)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2295)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:334)
at android.app.ActivityThread.main(ActivityThread.java:8396)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1068)

ankitagnihotri wrote this answer on 2022-11-13

Tried with following soLoader library version:

implementation 'com.facebook.soloader:soloader:0.10.4'

It is still not working

kirannk-1306 wrote this answer on 2022-11-15

Hi Team, I am facing similar crash issue. Any workarounds to resolve the issue? Thanks.

SoohyungJung wrote this answer on 2022-11-17

I'm facing the same issue as well :(

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-12-10
Star Count 106395
Watcher Count 3660
Fork Count 22685
Issue Count 2288

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Small misspelling at help response 1 2022-06-13 2022-11-28
Can't Reset BucketHistograms from the MetricsRoot object 0 2022-09-29 2022-11-01
[NeuralNetwork] [error] Input tensor '0' (0) exceeds available data range. Data size (X B), tensor offset (0), size (Y B) - skipping inference` 0 2022-03-24 2022-11-25
Create interface for "new entities" for insert APIs and remove nullable ID properties 1 2021-11-29 2022-11-05
使用StringFog后,打包的app中图标变黑色块 0 2019-07-18 2022-11-26
[Suggestion] Easier removal of features and adding 40 2021-02-19 2022-12-05
Request to bump OCaml version to >= 4.07.0 6 2021-10-19 2022-11-25
[Bug]: Livewire\CorruptComponentPayloadException on any action when $sortField and Detail Row is set 8 2022-11-06 2022-12-01
Is there a way to display header of selected item? 1 2021-01-21 2022-11-25
AddMongoDBMembershipTable bug 1 2020-08-17 2022-11-16
WinForms 6 Support 7 2021-12-20 2022-01-16
Can't install on newest Ubuntu 22 2 2022-07-06 2022-11-11
Getting the post url 6 2021-11-10 2022-12-02
Implement cancellation token 0 2021-01-07 2022-10-19
Concerns around --config auto 1 2022-06-08 2022-08-30
Schema fails to build with serializer method fields that reference an overridden list serializer 2 2022-03-27 2022-08-09
bpf/usdt.bpf.h causes BTF finalization error VAR __bpf_usdt_specs 3 2022-08-18 2022-11-18
When I try to build my application the vue-scrollto gives me an error 4 2021-06-13 2022-12-03
Accepting cookie consent does not dismiss modal dialog 5 2021-11-12 2022-10-20
Design a two step token migration workflow for the OCRv2 aggregator 0 2022-09-16 2022-12-02
How do I see the project I own? 0 2021-10-01 2022-09-14
Theme broken 1 2021-09-27 2021-12-24
Memory limit (total) exceeded: would use 275.91 PiB (attempt to allocate chunk of 4826417 bytes), maximum: 56.63 GiB 9 2022-09-29 2022-09-25
Too big allocation in `AggregateFunctionSparkbar` 0 2022-09-28 2022-09-25
Installation: best way to chmod +x where necessary? 7 2018-01-15 2022-11-14
[Bug]: Forking apps add the deleted page from the Original app 2 2022-03-11 2022-10-25
Versions 10.1 and 10.3 fail with TF 0.14.8 on required_version for quota_manager 2 2021-03-31 2022-11-12
Rerunning a tool fails to replace collection ellements (for mapped over job?) 1 2022-11-28 2022-12-08
Question: How to configure GraphQL in Besu setup? 3 2021-11-08 2022-12-09
Bug : Incorrect number of differences 2 2019-06-10 2022-12-04
Change of user password fails when using postgres 1 2022-03-18 2022-10-07
Allow searching for parent item title/creator/year in Add Note dialog 0 2022-09-09 2022-11-07
How to register alignment styles in react-quill 1 2020-08-21 2022-11-17
JAVA 支持gmssl生成的证书加载吗 5 2021-03-23 2022-10-31
invalid free while using pcap_activate 6 2022-03-08 2022-11-29
Publish an ARM docker container for seqcli 6 2022-02-03 2022-11-30
Creating a hinted handoff sync point encode information only about live nodes, not all 0 2021-09-30 2022-10-31
NullPointerException 1 2019-06-18 2022-11-22
disable_antialiasing no longer works since 1.2 patch 1 2021-04-04 2022-10-26
Handle customer.subscription.updated webhook event type 2 2021-06-29 2022-10-18
An uninitialized value/variable is used in if condition 2 2020-08-13 2022-10-31
Update the README.md to contain all necessary details for working with the library 0 2021-06-29 2022-12-03
Running npx @capacitor/cli plugin:generate gives "removed" errror 1 2021-06-28 2022-11-20
add config option for launcher 3 2021-11-29 2022-09-06
[CLI]: ValueError: Instances of wandb.Artifact and wandb.apis.public.Artifact can only be top level keys in wandb.config 15 2022-03-02 2022-11-23
Numbers of Books 2 2021-05-29 2022-01-15
Bookie can't start after rebooting due the cookie mistmatch 1 2022-06-03 2022-11-14
use environment variables for claiming 5 2021-05-26 2022-11-07
jshint related issues 0 2021-10-16 2022-11-29
Easy way to fold the left menu 1 2022-03-15 2022-10-31