Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/lib/arm64/libfolly_runtime.so" #37890

Closed
satheeshwaran opened this issue Jun 14, 2023 · 25 comments
Labels
Resolution: Answered When the issue is resolved with a simple answer Type: Upgrade Issue Issues reported from upgrade issue form

Comments

@satheeshwaran
Copy link

satheeshwaran commented Jun 14, 2023

New Version

0.71.8

Old Version

0.68.5

Build Target(s)

Android emulator

Output of react-native info

System:
OS: macOS 13.0
CPU: (10) x64 Apple M1 Max
Memory: 30.68 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.17.0 - ~/.nvm/versions/node/v14.17.0/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.13 - ~/.nvm/versions/node/v14.17.0/bin/npm
Watchman: 2023.06.08.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK:
API Levels: 28, 30, 31, 32, 33
Build Tools: 19.1.0, 20.0.0, 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0, 33.0.1, 34.0.0
System Images: android-31 | Google APIs ARM 64 v8a, android-31 | Google APIs Intel x86_64 Atom, android-33 | Google APIs Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /Users/satheeshwaran/.jenv/shims/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.8 => 0.71.8
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Issue and Reproduction Steps

We are trying to upgrade our app from 0.68.5 to 0.71.8. iOS seems to work fine but on Android we are getting a crash on launch.

Crash logs:

2023-06-14 23:45:59.460   548-2735  ActivityManager         system_process                       I  Force stopping com.ourcompany.baseline.storybook appid=10161 user=0: from pid 18324
2023-06-14 23:46:01.445   548-602   PackageManager          system_process                       I  Update package com.ourcompany.baseline.storybook code path from /data/app/~~Sw2HxiayVF1DjuBxUTmWog==/com.ourcompany.baseline.storybook-fiSqFsP8vHBH4QdoVYmxWA== to /data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==; Retain data and using new
2023-06-14 23:46:01.536  1560-1560  MediaProvider           com...ndroid.providers.media.module  I  Invalidating LocalCallingIdentity cache for package com.ourcompany.baseline.storybook. Reason: package android.intent.action.PACKAGE_REMOVED
2023-06-14 23:46:01.549  1596-1596  GsaVoiceInteractionSrv  com....android.googlequicksearchbox  I  O received Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) }
2023-06-14 23:46:01.551   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.gms/.games.chimera.GamesSystemBroadcastReceiverProxy
2023-06-14 23:46:01.552   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2023-06-14 23:46:01.552   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher
2023-06-14 23:46:01.585   548-569   CompanionD...gerService system_process                       D  onPackageModified(packageName = com.ourcompany.baseline.storybook)
2023-06-14 23:46:01.607   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.packageinstaller/com.android.packageinstaller.PackageInstalledReceiver
2023-06-14 23:46:01.608   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.gms/.games.chimera.GamesSystemBroadcastReceiverProxy
2023-06-14 23:46:01.608   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.gms/.gass.chimera.PackageChangeBroadcastReceiver
2023-06-14 23:46:01.608   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2023-06-14 23:46:01.611   737-737   MediaPlayerList         com.android.bluetooth                D  Name of package changed: com.ourcompany.baseline.storybook
2023-06-14 23:46:01.611   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher
2023-06-14 23:46:01.641  1560-1560  MediaProvider           com...ndroid.providers.media.module  I  Invalidating LocalCallingIdentity cache for package com.ourcompany.baseline.storybook. Reason: package android.intent.action.PACKAGE_ADDED
2023-06-14 23:46:01.681   548-2192  ActivityManager         system_process                       I  Force stopping com.ourcompany.baseline.storybook appid=10161 user=0: from pid 18356
2023-06-14 23:46:01.685   548-548   Telecom                 system_process                       I  CarModeTracker: Package com.ourcompany.baseline.storybook is not tracked.: SSH.oR@ANI
2023-06-14 23:46:01.716   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.gms/.gass.chimera.PackageChangeBroadcastReceiver
2023-06-14 23:46:01.716   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2023-06-14 23:46:01.716   548-580   BroadcastQueue          system_process                       W  Background execution not allowed: receiving Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) } to com.google.android.googlequicksearchbox/com.google.android.apps.gsa.googlequicksearchbox.GelStubAppWatcher
2023-06-14 23:46:01.722  1596-1596  GsaVoiceInteractionSrv  com....android.googlequicksearchbox  I  O received Intent { act=android.intent.action.PACKAGE_ADDED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) }
2023-06-14 23:46:01.755  1596-1596  GsaVoiceInteractionSrv  com....android.googlequicksearchbox  I  O received Intent { act=android.intent.action.PACKAGE_REPLACED dat=package:com.ourcompany.baseline.storybook flg=0x4000010 (has extras) }
2023-06-14 23:46:01.755   942-942   ImsResolver             com.android.phone                    D  maybeAddedImsService, packageName: com.ourcompany.baseline.storybook
2023-06-14 23:46:01.800   548-2737  ActivityTaskManager     system_process                       I  START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.ourcompany.baseline.storybook/.MainActivity} from uid 2000
2023-06-14 23:46:01.841   743-1013  StartingSurfaceDrawer   com.android.systemui                 D  addSplashScreen com.ourcompany.baseline.storybook theme=7f12000a task=330 suggestType=3
2023-06-14 23:46:01.881   548-581   ActivityManager         system_process                       I  Start proc 18398:com.ourcompany.baseline.storybook/u0a161 for pre-top-activity {com.ourcompany.baseline.storybook/com.ourcompany.baseline.storybook.MainActivity}
2023-06-14 23:46:02.065   548-599   VerityUtils             system_process                       E  Failed to measure fs-verity, errno 1: /data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/base.apk
---------------------------- PROCESS STARTED (18398) for package com.ourcompany.baseline.storybook ----------------------------
2023-06-14 23:46:02.097 18398-18398 Compatibil...geReporter com.ourcompany.baseline.storybook           D  Compat change id reported: 171979766; UID 10161; state: ENABLED
2023-06-14 23:46:02.198  3959-18426 SQLiteLog               com.google.android.gms               W  (28) double-quoted string literal: "com.ourcompany.baseline.storybook"
2023-06-14 23:46:02.287   548-599   VerityUtils             system_process                       E  Failed to measure fs-verity, errno 1: /data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/base.apk
2023-06-14 23:46:02.504 18398-18398 GraphicsEnvironment     com.ourcompany.baseline.storybook           V  ANGLE Developer option for 'com.ourcompany.baseline.storybook' set to: 'default'
2023-06-14 23:46:02.504 18398-18398 GraphicsEnvironment     com.ourcompany.baseline.storybook           V  Neither updatable production driver nor prerelease driver is supported.
2023-06-14 23:46:02.506 18398-18398 NetworkSecurityConfig   com.ourcompany.baseline.storybook           D  No Network Security Config specified, using platform default
2023-06-14 23:46:02.507 18398-18398 NetworkSecurityConfig   com.ourcompany.baseline.storybook           D  No Network Security Config specified, using platform default
2023-06-14 23:46:02.520 18398-18398 FirebaseApp             com.ourcompany.baseline.storybook           I  Device unlocked: initializing all Firebase APIs for app [DEFAULT]
2023-06-14 23:46:02.526 18398-18398 FirebaseCrashlytics     com.ourcompany.baseline.storybook           I  Initializing Firebase Crashlytics 18.2.13 for com.ourcompany.baseline.storybook
2023-06-14 23:46:02.559 18398-18472 DynamiteModule          com.ourcompany.baseline.storybook           I  Considering local module com.google.android.gms.measurement.dynamite:83 and remote module com.google.android.gms.measurement.dynamite:54
2023-06-14 23:46:02.559 18398-18472 DynamiteModule          com.ourcompany.baseline.storybook           I  Selected local version of com.google.android.gms.measurement.dynamite
2023-06-14 23:46:02.569 18398-18398 FirebaseInitProvider    com.ourcompany.baseline.storybook           I  FirebaseApp initialization successful
2023-06-14 23:46:02.571 18398-18398 ReactNativeFirebaseApp  com.ourcompany.baseline.storybook           D  received application context.
2023-06-14 23:46:02.574 18398-18398 RNFBCrashlyticsInit     com.ourcompany.baseline.storybook           D  isCrashlyticsCollectionEnabled via RNFBJSON: true
2023-06-14 23:46:02.574 18398-18473 libcrashlytics          com.ourcompany.baseline.storybook           D  Initializing libcrashlytics version 3.2.0
2023-06-14 23:46:02.576 18398-18398 RNFBCrashlyticsInit     com.ourcompany.baseline.storybook           D  isCrashlyticsCollectionEnabled after checking crashlytics_debug_enabled: false
2023-06-14 23:46:02.576 18398-18398 RNFBCrashlyticsInit     com.ourcompany.baseline.storybook           D  isCrashlyticsCollectionEnabled final value: false
2023-06-14 23:46:02.588 18398-18473 libcrashlytics          com.ourcompany.baseline.storybook           D  Initializing native crash handling successful.
2023-06-14 23:46:02.590 18398-18398 RNFBCrashlyticsInit     com.ourcompany.baseline.storybook           I  initialization successful
2023-06-14 23:46:02.618 18398-18398 fb-UnpackingSoSource    com.ourcompany.baseline.storybook           V  locked dso store /data/user/0/com.ourcompany.baseline.storybook/lib-main
2023-06-14 23:46:02.618 18398-18398 fb-UnpackingSoSource    com.ourcompany.baseline.storybook           V  deps mismatch on deps store: regenerating
2023-06-14 23:46:02.618 18398-18398 fb-UnpackingSoSource    com.ourcompany.baseline.storybook           V  so store dirty: regenerating
2023-06-14 23:46:02.634 18398-18486 FA                      com.ourcompany.baseline.storybook           I  App measurement initialized, version: 73000
2023-06-14 23:46:02.634 18398-18486 FA                      com.ourcompany.baseline.storybook           I  To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2023-06-14 23:46:02.634 18398-18486 FA                      com.ourcompany.baseline.storybook           I  To enable faster debug mode event logging run:
                                                                                                      adb shell setprop debug.firebase.analytics.app com.ourcompany.baseline.storybook
2023-06-14 23:46:02.668 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libc++_shared.so: deferring to libdir
2023-06-14 23:46:02.668 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libconceal.so: deferring to libdir
2023-06-14 23:46:02.668 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libcrashlytics-common.so: deferring to libdir
2023-06-14 23:46:02.668 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libcrashlytics-handler.so: deferring to libdir
2023-06-14 23:46:02.668 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libcrashlytics-trampoline.so: deferring to libdir
2023-06-14 23:46:02.668 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libcrashlytics.so: deferring to libdir
2023-06-14 23:46:02.668 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libcxxcomponents.so: deferring to libdir
2023-06-14 23:46:02.668 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libevent-2.1.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libevent_core-2.1.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libevent_extra-2.1.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libfabricjni.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libfb.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libfbjni.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libflipper.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libfolly_runtime.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libglog.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libglog_init.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libhermes.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libhermes_executor.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libimagepipeline.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libjsi.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libjsijniprofiler.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libjsinspector.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/liblogger.so: deferring to libdir
2023-06-14 23:46:02.669 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libmapbufferjni.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libnative-filters.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libnative-imagetranscoder.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libquickjs.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_codegen_rncore.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_config.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_debug.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_nativemodule_core.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_newarchdefaults.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_animations.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_attributedstring.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_componentregistry.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_core.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_debug.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_graphics.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_imagemanager.so: deferring to libdir
2023-06-14 23:46:02.670 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_leakchecker.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_mapbuffer.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_mounting.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_runtimescheduler.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_scheduler.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_telemetry.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_templateprocessor.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_textlayoutmanager.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_render_uimanager.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreact_utils.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreactnativeblob.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreactnativejni.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreactperfloggerjni.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libreanimated.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/librrc_image.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/librrc_root.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/librrc_scrollview.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/librrc_text.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/librrc_textinput.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/librrc_unimplementedview.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/librrc_view.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libruntimeexecutor.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdk.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_barcodev2.so: deferring to libdir
2023-06-14 23:46:02.671 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_barcodev3.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_blurdetector.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_commonocr.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_docdetector.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_ehic.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_gdr.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_lcd.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_licenseplate.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_mcform.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libscanbotsdkdata_ocrb.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libtflite.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libturbomodulejsijni.so: deferring to libdir
2023-06-14 23:46:02.672 18398-18398 ApkSoSource             com.ourcompany.baseline.storybook           D  not allowing consideration of lib/arm64-v8a/libyoga.so: deferring to libdir
2023-06-14 23:46:02.673 18398-18398 fb-UnpackingSoSource    com.ourcompany.baseline.storybook           V  regenerating DSO store com.facebook.soloader.ApkSoSource
2023-06-14 23:46:02.674 18398-18398 fb-UnpackingSoSource    com.ourcompany.baseline.storybook           V  Finished regenerating DSO store com.facebook.soloader.ApkSoSource
2023-06-14 23:46:02.674 18398-18398 fb-UnpackingSoSource    com.ourcompany.baseline.storybook           V  starting syncer worker
2023-06-14 23:46:02.681 18398-18398 fb-UnpackingSoSource    com.ourcompany.baseline.storybook           V  releasing dso store lock for /data/user/0/com.ourcompany.baseline.storybook/lib-main (from syncer thread)
2023-06-14 23:46:02.682 18398-18398 fb-UnpackingSoSource    com.ourcompany.baseline.storybook           V  not releasing dso store lock for /data/user/0/com.ourcompany.baseline.storybook/lib-main (syncer thread started)
2023-06-14 23:46:02.702 18398-18494 libEGL                  com.ourcompany.baseline.storybook           D  loaded /vendor/lib64/egl/libEGL_emulation.so
2023-06-14 23:46:02.703 18398-18494 libEGL                  com.ourcompany.baseline.storybook           D  loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so
2023-06-14 23:46:02.706 18398-18494 libEGL                  com.ourcompany.baseline.storybook           D  loaded /vendor/lib64/egl/libGLESv2_emulation.so
2023-06-14 23:46:02.722 18398-18398 unknown:Re...gerBuilder com.ourcompany.baseline.storybook           W  You're not setting the JS Engine Resolution Algorithm. We'll try to load JSC first, and if it fails we'll fallback to Hermes
2023-06-14 23:46:02.723 18398-18398 SoLoader                com.ourcompany.baseline.storybook           V  libjscexecutor.so not found on /data/data/com.ourcompany.baseline.storybook/lib-main
2023-06-14 23:46:02.723 18398-18398 SoLoader                com.ourcompany.baseline.storybook           V  libjscexecutor.so not found on /data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/lib/arm64
2023-06-14 23:46:02.723 18398-18398 SoLoader                com.ourcompany.baseline.storybook           V  libjscexecutor.so not found on /system/lib64
2023-06-14 23:46:02.723 18398-18398 SoLoader                com.ourcompany.baseline.storybook           V  libjscexecutor.so not found on /vendor/lib64
2023-06-14 23:46:02.724 18398-18398 SoLoader                com.ourcompany.baseline.storybook           E  couldn't find DSO to load: libjscexecutor.so
                                                                                                    	SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/com.ourcompany.baseline.storybook/lib-main flags = 1]
                                                                                                    	SoSource 1: com.facebook.soloader.DirectorySoSource[root = /data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/lib/arm64 flags = 0]
                                                                                                    	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/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/lib/arm64
                                                                                                     result: 0
2023-06-14 23:46:02.725 18398-18398 SoLoader                com.ourcompany.baseline.storybook           V  libhermes.so not found on /data/data/com.ourcompany.baseline.storybook/lib-main
2023-06-14 23:46:02.725 18398-18398 SoLoader                com.ourcompany.baseline.storybook           D  libhermes.so found on /data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/lib/arm64
2023-06-14 23:46:02.725 18398-18398 SoLoader                com.ourcompany.baseline.storybook           D  Not resolving dependencies for libhermes.so
2023-06-14 23:46:02.745 18398-18398 System.err              com.ourcompany.baseline.storybook           W  java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/lib/arm64/libfolly_runtime.so"...
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at java.lang.Runtime.load0(Runtime.java:929)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at java.lang.System.load(System.java:1620)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.soloader.SoLoader$1.load(SoLoader.java:558)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:110)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:63)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.soloader.ApplicationSoSource.loadLibrary(ApplicationSoSource.java:91)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:943)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:855)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:802)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:772)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.react.ReactDelegate.loadApp(ReactDelegate.java:104)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:111)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:106)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:46)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.Activity.performCreate(Activity.java:8051)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.Activity.performCreate(Activity.java:8031)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.os.Handler.dispatchMessage(Handler.java:106)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.os.Looper.loopOnce(Looper.java:201)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.os.Looper.loop(Looper.java:288)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at android.app.ActivityThread.main(ActivityThread.java:7839)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at java.lang.reflect.Method.invoke(Native Method)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
2023-06-14 23:46:02.747 18398-18398 System.err              com.ourcompany.baseline.storybook           W  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
2023-06-14 23:46:02.747 18398-18398 SoLoader                com.ourcompany.baseline.storybook           E  couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/lib/arm64/libfolly_runtime.so"... result: 0
2023-06-14 23:46:02.748 18398-18398 AndroidRuntime          com.ourcompany.baseline.storybook           D  Shutting down VM
2023-06-14 23:46:02.748 18398-18398 AndroidRuntime          com.ourcompany.baseline.storybook           E  FATAL EXCEPTION: main
                                                                                                    Process: com.ourcompany.baseline.storybook, PID: 18398
                                                                                                    java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/lib/arm64/libfolly_runtime.so"... 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.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
                                                                                                    	at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
                                                                                                    	at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24)
                                                                                                    	at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369)
                                                                                                    	at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316)
                                                                                                    	at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94)
                                                                                                    	at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
                                                                                                    	at com.facebook.react.ReactDelegate.loadApp(ReactDelegate.java:104)
                                                                                                    	at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:111)
                                                                                                    	at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:106)
                                                                                                    	at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:46)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8051)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8031)
                                                                                                    	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608)
                                                                                                    	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792)
                                                                                                    	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:201)
                                                                                                    	at android.os.Looper.loop(Looper.java:288)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:7839)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
                                                                                                    Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~NzUjXvjB08qWYYuZnkx3dA==/com.ourcompany.baseline.storybook-saPl71AXK1bJ-2pLL3Oe6w==/lib/arm64/libfolly_runtime.so"...
                                                                                                    	at java.lang.Runtime.load0(Runtime.java:929)
                                                                                                    	at java.lang.System.load(System.java:1620)
                                                                                                    	at com.facebook.soloader.SoLoader$1.load(SoLoader.java:558)
                                                                                                    	at com.facebook.soloader.DirectorySoSource.loadLibraryFrom(DirectorySoSource.java:110)
                                                                                                    	at com.facebook.soloader.DirectorySoSource.loadLibrary(DirectorySoSource.java:63)
                                                                                                    	at com.facebook.soloader.ApplicationSoSource.loadLibrary(ApplicationSoSource.java:91)
                                                                                                    	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1067)
                                                                                                    	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.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26) 
                                                                                                    	at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20) 
                                                                                                    	at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:24) 
                                                                                                    	at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:369) 
                                                                                                    	at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:316) 
                                                                                                    	at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:94) 
                                                                                                    	at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41) 
                                                                                                    	at com.facebook.react.ReactDelegate.loadApp(ReactDelegate.java:104) 
                                                                                                    	at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:111) 
                                                                                                    	at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:106) 
                                                                                                    	at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:46) 
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8051) 
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8031) 
                                                                                                    	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329) 
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3608) 
                                                                                                    	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3792) 
                                                                                                    	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) 
                                                                                                    	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) 
                                                                                                    	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) 
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210) 
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106) 
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:201) 
                                                                                                    	at android.os.Looper.loop(Looper.java:288) 
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:7839) 
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) 
2023-06-14 23:46:02.787 18398-18473 libcrashlytics          com.ourcompany.baseline.storybook           D  Initializing libcrashlytics version 3.2.0
2023-06-14 23:46:02.787 18398-18473 libcrashlytics          com.ourcompany.baseline.storybook           D  Initializing native crash handling successful.
2023-06-14 23:46:02.794   548-1376  ActivityTaskManager     system_process                       W    Force finishing activity com.ourcompany.baseline.storybook/.MainActivity
2023-06-14 23:46:02.808 18398-18398 Process                 com.ourcompany.baseline.storybook           I  Sending signal. PID: 18398 SIG: 9
2023-06-14 23:46:02.828   548-2737  ActivityManager         system_process                       I  Process com.ourcompany.baseline.storybook (pid 18398) has died: prcp TOP 
---------------------------- PROCESS ENDED (18398) for package com.ourcompany.baseline.storybook ----------------------------
2023-06-14 23:46:02.838   548-2737  InputManager-JNI        system_process                       W  Input channel object 'fa614e5 Splash Screen com.ourcompany.baseline.storybook (client)' was disposed without first being removed with the input manager!
2023-06-14 23:46:03.294   548-572   ActivityTaskManager     system_process                       W  Activity top resumed state loss timeout for ActivityRecord{25b6262 u0 com.ourcompany.baseline.storybook/.MainActivity t-1 f}}
2023-06-14 23:46:03.631  3959-4004  AppLinksAsyncVerifierV2 com.google.android.gms               I  Verification result: checking for a statement with source https://mock.example, relation delegate_permission/common.handle_all_urls, and target com.ourcompany.baseline.storybook --> false. [CONTEXT service_id=244 ]
2023-06-14 23:46:03.631  3959-18346 AppLinksHostsVerifierV2 com.google.android.gms               I  Verification com.ourcompany.baseline.storybook complete. Successful hosts: . Failed hosts: mock.example. Error hosts: . [CONTEXT service_id=244 ]

build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
		supportLibVersion = "27.1.0"
		googlePlayServicesVersion = "17.0.0"
		androidMapsUtilsVersion = "0.5+"
        buildToolsVersion = "33.0.0"
        androidXBrowser = "1.3.0"
        minSdkVersion = 21
        compileSdkVersion = 33
        targetSdkVersion = 33
        // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
        ndkVersion = "23.1.7779620"
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:7.3.1")
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
		classpath 'com.google.gms:google-services:4.3.12'
    }
}

// We need this for custom plugins.
allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://www.jitpack.io' }
        maven { url 'https://nexus.scanbot.io/nexus/content/repositories/releases/' }
        maven { url 'https://nexus.scanbot.io/nexus/content/repositories/snapshots/' }
    }
}

app/build.gradle:


apply plugin: "com.android.application"
apply plugin: "com.google.gms.google-services"
apply plugin: "com.google.firebase.crashlytics"
apply plugin: "com.facebook.react"

import com.android.build.OutputFile

react {

}
def enableSeparateBuildPerCPUArchitecture = false

def enableProguardInReleaseBuilds = false

def jscFlavor = 'org.webkit:android-jsc:+'

def reactNativeArchitectures() {
    def value = project.getProperties().get("reactNativeArchitectures")
    return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}

android {
     packagingOptions { pickFirst '**/libc++_shared.so' }
    ndkVersion rootProject.ext.ndkVersion

    compileSdkVersion rootProject.ext.compileSdkVersion

    namespace "com.ourcompany.baseline.storybook"
    defaultConfig {
        applicationId "com.ourcompany.baseline.storybook"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0.0.0.1.mock"
    }

    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include (*reactNativeArchitectures())
        }
    }
    signingConfigs {
        debug {
            storeFile file('debug.keystore')
            storePassword 'android'
            keyAlias 'androiddebugkey'
            keyPassword 'android'
        }
    }
		sourceSets
{
			main { assets.srcDirs = ['src/main/assets', '../../src/images/mmmm/mmmm-animation.bundle']			
}	
}
    buildTypes {
        debug {
            signingConfig signingConfigs.debug
			firebaseCrashlytics {
				mappingFileUploadEnabled false
			}
        }
        release {
            // Caution! In production, you need to generate your own keystore file.
            // see https://reactnative.dev/docs/signed-apk-android.
            signingConfig signingConfigs.debug
            minifyEnabled enableProguardInReleaseBuilds
			firebaseCrashlytics {
				mappingFileUploadEnabled enableProguardInReleaseBuilds
				nativeSymbolUploadEnabled true
				unstrippedNativeLibsDir 'build/intermediates/merged_native_libs/release/out/lib'
			}
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }

    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // https://developer.android.com/studio/build/configure-apk-splits.html
            // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
            def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        defaultConfig.versionCode * 1000 + versionCodes.get(abi)
            }

        }
    }
}

dependencies {
implementation project(':ourcompany-custom-sdk')
    // The version of react-native is set by the React Native Gradle Plugin
    implementation("com.facebook.react:react-android")

    implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")

    debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
    debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
        exclude group:'com.squareup.okhttp3', module:'okhttp'
    }

    debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
    if (hermesEnabled.toBoolean()) {
        implementation("com.facebook.react:hermes-android")
    } else {
        implementation jscFlavor
    }
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)

gradle.properties

android.enableJetifier=true
FLIPPER_VERSION=0.125.0
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
newArchEnabled=false
hermesEnabled=true
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

Already tried the solutions mentioned in the below issues but no resolution:

Standalone React native 0.71.8 works fine and launches successfully. The problem persists only during the upgrade.

@satheeshwaran satheeshwaran added Needs: Triage 🔍 Type: Upgrade Issue Issues reported from upgrade issue form labels Jun 14, 2023
@cortinico
Copy link
Contributor

Standalone React native 0.71.8 works fine and launches successfully. The problem persists only during upgrade.

Can we create a reproducer of some sort?
You mention that 0.71 vanilla works fine for you. I'd like to pinpoint what's the difference between your project and the template so we can fix this once for all.

Once we have a reproducer I can look into fixing this one.

@cortinico cortinico added Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. and removed Needs: Triage 🔍 labels Jun 15, 2023
@github-actions
Copy link

⚠️ Missing Reproducible Example
ℹ️ It looks like your issue is missing a reproducible example. Please provide either:

@satheeshwaran
Copy link
Author

@cortinico Thanks for getting back. I will try to get back to you with a reproducible example. The only difference I see between our project and vanilla RN 0.71.8 is some extra third-party libraries.

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Jun 15, 2023
@satheeshwaran
Copy link
Author

@cortinico Here is a reproducible example: https://github.com/satheeshwaran/RNSeventOneEight

@cortinico
Copy link
Contributor

cortinico commented Jun 15, 2023

@cortinico Here is a reproducible example: satheeshwaran/RNSeventOneEight

That link returns 404 for me

@satheeshwaran
Copy link
Author

@cortinico Sorry please check now, I made it public.

@satheeshwaran
Copy link
Author

The problem was with react-native-scanbot-sdk and even though I removed a custom libc++_shared.so file under jniLibs of the root project & the { pickFirst '**/libc++_shared.so' } configuration in app/build.gradle. The SDK also had a copy internally, removing it fixed the issue.

The SDK vendor also fixed this issue recently.

https://docs.scanbot.io/document-scanner-sdk/react-native/changelog/#version-4150-14-jun-2023

Removed jniLibs from the plugin; when migrating from a previous version, you should remove the jniLibs folder from your Android project, along with the pickFirst packaging option in your app build.gradle

I hope this helps someone.

@cortinico
Copy link
Contributor

The problem was with react-native-scanbot-sdk

Ah great, thanks for the clarification

@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Attention Issues where the author has responded to feedback. labels Jun 22, 2023
@shubhamguptadream11
Copy link
Collaborator

shubhamguptadream11 commented Oct 27, 2023

Hey @satheeshwaran I am also getting exactly same crash when I am trying to upgrade react native from 0.69.1 to 0.72.4.
Can you please elaborate how did you solved this.
We are not using react-native-scanbot-sdk.
My app is building on OS <= 10. Crashing for OS > 10

I also followed your path of debugging and found that I have one sdk @nimbleedge/nimblenet_react": "1.2.6 which is causing this crash. But stuck in solving this.

@mayeyun
Copy link

mayeyun commented Dec 13, 2023

没有人能解决这个问题,不知道react-native官方能否解决这个问题!

@karshTensor
Copy link

Facing a similar issue. Tried different solution and also have posted a question on stackoverflow.
https://stackoverflow.com/questions/77726791/unsatisfiedlinkerror-dlopen-failed-cannot-locate-symbol-emutls-get-address

@piyushroongta
Copy link

facing the same issue. no solution yet

@toscalivia83
Copy link

Same here. With RN 0.71.7

@zhairui
Copy link

zhairui commented Jan 23, 2024

facing the same issue. pls help

@satheeshwaran
Copy link
Author

satheeshwaran commented Jan 24, 2024

Check whether you have any custom NDK libraries under the jniLibs folder on android or check the project on Android Studio, if you find any custom NDL libraries try to remove them and build once.

@douglasjunior
Copy link

@cortinico I apologize for reviving this issue, but I have a similar error when integrating a third-party .aar to my project. The project is compiling successfully but crashing on start (even in debug mode).

To simulate the problem, I have created a new project with RN 0.73.4 and just linked the .aab:

dependencies {
    implementation (files("libs/canoa-sdk_2.9.2_dw.aar"))
}

The error:

E  FATAL EXCEPTION: main
Process: com.rncanoasdk, PID: 27273
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~uaBbfX-mIx0xfhEaF7JQtQ==/com.rncanoasdk-8i3wtPg1PWkRj3Nnps2D5w==/lib/arm64/libfolly_runtime.so"...
at java.lang.Runtime.loadLibrary0(Runtime.java:1082)
at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
at java.lang.System.loadLibrary(System.java:1661)
at com.facebook.soloader.nativeloader.SystemDelegate.loadLibrary(SystemDelegate.java:24)
at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(NativeLoader.java:52)
at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(NativeLoader.java:30)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:869)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:26)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:384)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:326)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:98)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:43)
at com.facebook.react.ReactDelegate.loadApp(ReactDelegate.java:173)
at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:123)
at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:118)
at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:46)
at android.app.Activity.performCreate(Activity.java:8944)
at android.app.Activity.performCreate(Activity.java:8913)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:230)
at android.os.Looper.loop(Looper.java:319)
at android.app.ActivityThread.main(ActivityThread.java:8893)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

Inspecting the .aar I found these jni libraries:

Screenshot 2024-02-15 at 10 03 34

I also have tried to add some pickFirst instructions, with no success:

    packagingOptions {
        pickFirst 'lib/x86_64/libopencv_java4.so'
        pickFirst 'lib/x86_64/libchilkat.so'
        pickFirst 'lib/x86_64/libtensorflowlite_jni.so'
        pickFirst 'lib/x86_64/libc++_shared.so'
        pickFirst 'lib/x86_64/libcanoanative.so'
        pickFirst 'lib/x86_64/libsincrSeg.so'
        
        pickFirst 'lib/x86/libopencv_java4.so'
        pickFirst 'lib/x86/libchilkat.so'
        pickFirst 'lib/x86/libtensorflowlite_jni.so'
        pickFirst 'lib/x86/libc++_shared.so'
        pickFirst 'lib/x86/libcanoanative.so'
        pickFirst 'lib/x86/libsincrSeg.so'
        
        pickFirst 'lib/arm64-v8a/libopencv_java4.so'
        pickFirst 'lib/arm64-v8a/libchilkat.so'
        pickFirst 'lib/arm64-v8a/libtensorflowlite_jni.so'
        pickFirst 'lib/arm64-v8a/libc++_shared.so'
        pickFirst 'lib/arm64-v8a/libcanoanative.so'
        pickFirst 'lib/arm64-v8a/libsincrSeg.so'

        pickFirst 'lib/armeabi-v7a/libopencv_java4.so'
        pickFirst 'lib/armeabi-v7a/libchilkat.so'
        pickFirst 'lib/armeabi-v7a/libtensorflowlite_jni.so'
        pickFirst 'lib/armeabi-v7a/libc++_shared.so'
        pickFirst 'lib/armeabi-v7a/libcanoanative.so'
        pickFirst 'lib/armeabi-v7a/libsincrSeg.so'
    }

And:

    packagingOptions {
        pickFirst '**/libopencv_java4.so'
        pickFirst '**/libchilkat.so'
        pickFirst '**/libtensorflowlite_jni.so'
        pickFirst '**/libc++_shared.so'
        pickFirst '**/libcanoanative.so'
        pickFirst '**/libsincrSeg.so'
    }

Thank you in advance, I appreciate any help on this.

@douglasjunior
Copy link

Log on RN 0.72.10 with JSC:

  java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreactnativejni.so caused by: couldn't find DSO to load: libreact_render_runtimescheduler.so caused by: couldn't find DSO to load: libreact_render_core.so caused by: couldn't find DSO to load: libjsi.so caused by: couldn't find DSO to load: libfolly_runtime.so
  	SoSource 0: com.facebook.soloader.DirectorySoSource[root = /data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64 flags = 0]
  	SoSource 1: com.facebook.soloader.DirectApkSoSource[root = [/data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/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/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64
   result: 0 result: 0 result: 0 result: 0 result: 0
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1228)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:1044)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:942)
  	at com.facebook.soloader.DirectApkSoSource.loadDependencies(DirectApkSoSource.java:169)
  	at com.facebook.soloader.DirectApkSoSource.loadLibrary(DirectApkSoSource.java:85)
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1168)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:1044)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:956)
  	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:903)
  	at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:869)
  	at com.facebook.react.jscexecutor.JSCExecutor.loadLibrary(JSCExecutor.java:24)
  	at com.facebook.react.jscexecutor.JSCExecutor.<clinit>(JSCExecutor.java:20)
  	at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:373)
  	at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:325)
  	at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:96)
  	at expo.modules.ReactNativeHostWrapperBase.createReactInstanceManager(ReactNativeHostWrapperBase.kt:32)
  	at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
  	at com.facebook.react.ReactDelegate.loadApp(ReactDelegate.java:121)
  	at com.facebook.react.ReactActivityDelegate.loadApp(ReactActivityDelegate.java:114)
  	at com.facebook.react.ReactActivityDelegate.onCreate(ReactActivityDelegate.java:109)
  	at com.facebook.react.ReactActivity.onCreate(ReactActivity.java:46)
  	at com.uniprimeapp.MainActivity.onCreate(MainActivity.java:16)
  	at android.app.Activity.performCreate(Activity.java:8944)
  	at android.app.Activity.performCreate(Activity.java:8913)
  	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
  	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146)
  	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
  	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
  	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
  	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
  	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
  	at android.os.Handler.dispatchMessage(Handler.java:106)
  	at android.os.Looper.loopOnce(Looper.java:230)
  	at android.os.Looper.loop(Looper.java:319)
  	at android.app.ActivityThread.main(ActivityThread.java:8893)
  	at java.lang.reflect.Method.invoke(Native Method)
  	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
  Caused by: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreact_render_runtimescheduler.so caused by: couldn't find DSO to load: libreact_render_core.so caused by: couldn't find DSO to load: libjsi.so caused by: couldn't find DSO to load: libfolly_runtime.so
  	SoSource 0: com.facebook.soloader.DirectorySoSource[root = /data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64 flags = 0]
  	SoSource 1: com.facebook.soloader.DirectApkSoSource[root = [/data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/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/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64
   result: 0 result: 0 result: 0 result: 0
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1228)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:1044)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:942)
  	at com.facebook.soloader.DirectApkSoSource.loadDependencies(DirectApkSoSource.java:169)
  	at com.facebook.soloader.DirectApkSoSource.loadLibrary(DirectApkSoSource.java:85)
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1168)
  	... 37 more
  Caused by: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreact_render_core.so caused by: couldn't find DSO to load: libjsi.so caused by: couldn't find DSO to load: libfolly_runtime.so
  	SoSource 0: com.facebook.soloader.DirectorySoSource[root = /data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64 flags = 0]
  	SoSource 1: com.facebook.soloader.DirectApkSoSource[root = [/data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/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/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64
   result: 0 result: 0 result: 0
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1228)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:1044)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:942)
  	at com.facebook.soloader.DirectApkSoSource.loadDependencies(DirectApkSoSource.java:169)
  	at com.facebook.soloader.DirectApkSoSource.loadLibrary(DirectApkSoSource.java:85)
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1168)
  	... 42 more
  Caused by: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libjsi.so caused by: couldn't find DSO to load: libfolly_runtime.so
  	SoSource 0: com.facebook.soloader.DirectorySoSource[root = /data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64 flags = 0]
  	SoSource 1: com.facebook.soloader.DirectApkSoSource[root = [/data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/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/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64
   result: 0 result: 0
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1228)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:1044)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:942)
  	at com.facebook.soloader.DirectApkSoSource.loadDependencies(DirectApkSoSource.java:169)
  	at com.facebook.soloader.DirectApkSoSource.loadLibrary(DirectApkSoSource.java:85)
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1168)
  	... 47 more
  Caused by: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libfolly_runtime.so
  	SoSource 0: com.facebook.soloader.DirectorySoSource[root = /data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64 flags = 0]
  	SoSource 1: com.facebook.soloader.DirectApkSoSource[root = [/data/app/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/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/~~xdmnLBlKsSchfDSrsty4Gw==/br.com.samplebank2.mobile.develop-ak9xJVAJVQZw7XmWOs4lug==/lib/arm64
   result: 0
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1228)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl(SoLoader.java:1044)
  	at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:942)
  	at com.facebook.soloader.DirectApkSoSource.loadDependencies(DirectApkSoSource.java:169)
  	at com.facebook.soloader.DirectApkSoSource.loadLibrary(DirectApkSoSource.java:85)
  	at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:1168)
  	... 52 more

@douglasjunior
Copy link

I don't know if it will help the Tuya users too, but for us, the solution right now is to add the aar file as a local maven repository.

Described here #43126

@flyskywhy
Copy link
Contributor

No need to rebuild third-party .aar or .so, just patch:

cd tools/android-sdk/ndk

mv ./21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/libc++_shared.so ./21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/origin_libc++_shared.so
cp ./23.1.7779620/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/libc++_shared.so ./21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/

as described in Patch to fix __emutls_get_address crash on Android

@datdo26
Copy link

datdo26 commented Sep 19, 2024

flyskywhy

i tried but still get those errors

@flyskywhy
Copy link
Contributor

@datdo26 , when you got such error in some third-party module, what's the NDK version in the build.gradle of this third-party module?

BTW, are you building on Linux, Windows or macOS? Please choose the right OS's libc++_shared.so to mv and cp. (And I only test the patch on Linux)

@datdt-026
Copy link

@datdo26 , when you got such error in some third-party module, what's the NDK version in the build.gradle of this third-party module?

BTW, are you building on Linux, Windows or macOS? Please choose the right OS's libc++_shared.so to mv and cp. (And I only test the patch on Linux)

I'm using MacOS M1 Pro, i have a custom sdk use com.microsoft.onnxruntime:onnxruntime-android:latest.release

I've tried to change NDK version from 23.1.7779620 to NDK 21.4.7075529, tried to do your script but still get that error. I cleaned all caches in android studio and node_module

@datdt-026
Copy link

@flyskywhy I also have some pickFirst:
jniLibs.pickFirsts += "**/libonnxruntime.so"
jniLibs.pickFirsts += "**/libonnxruntime4j_jni.so"
jniLibs.pickFirsts += "**/libortextensions.so"

@flyskywhy
Copy link
Contributor

There is just

    packagingOptions {
        pickFirst '**/*.so'
    }

in my PROJECT/android/app/build.gradle (works with react-native-playtorch).

Where is your jniLibs.pickFirsts += "**/libonnxruntime.so"?

@datdo26
Copy link

datdo26 commented Sep 25, 2024

There is just

    packagingOptions {
        pickFirst '**/*.so'
    }

in my PROJECT/android/app/build.gradle (works with react-native-playtorch).

Where is your jniLibs.pickFirsts += "**/libonnxruntime.so"?

I put that in android/app/build.gradle, i same 3rd-party aar using com.microsoft.onnxruntime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Answered When the issue is resolved with a simple answer Type: Upgrade Issue Issues reported from upgrade issue form
Projects
None yet
Development

No branches or pull requests