couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by

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

New Version

0.70.6

Old Version

0.64.3

Build Target(s)

android Pixel 6 API 33

Output of react-native info

System:
OS: macOS 12.5
CPU: (8) arm64 Apple M1 Pro
Memory: 91.14 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
Watchman: 2022.11.14.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: 17.0.5 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Issue and Reproduction Steps

When I am trying to launch the app on android it crashed on the splash screen and Logcat reports the below error.

couldn't find DSO to load: libjscexecutor.so

SoSource 0: com.facebook.soloader.ApkSoSource[root = /data/data/<app-name>/lib-main flags = 1]
SoSource 1: com.facebook.soloader.DirectorySoSource[root=/data/app/~~AGozzVGVTA5Gh9p_gDZUZQ==/<app-name>--iZgSxziAEd9bD7-7vT15w==/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/~~AGozzVGVTA5Gh9p_gDZUZQ==/<app-name>--iZgSxziAEd9bD7-7vT15w==/lib/arm64 result: 0
couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~AGozzVGVTA5Gh9p_gDZUZQ==/<app-name>--iZgSxziAEd9bD7-7vT15w==/lib/arm64/libfolly_runtime.so"... result: 0
2022-11-16 21:57:22.186 16654-16654 AndroidRuntime          com.node.wallet                      D  Shutting down VM
2022-11-16 21:57:22.187 16654-16654 AndroidRuntime          com.node.wallet                      E  FATAL EXCEPTION: main Process: <app-name>, PID: 16654
 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/~~AGozzVGVTA5Gh9p_gDZUZQ==/<app-name>--iZgSxziAEd9bD7-7vT15w==/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:25)
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:19)
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:23)
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:393)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:343)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:96)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42)
at com.node.wallet.MainApplication.onCreate(MainApplication.java:45)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1266)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6785)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2134)
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:7898)
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:936)
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~AGozzVGVTA5Gh9p_gDZUZQ==/com.node.wallet--iZgSxziAEd9bD7-7vT15w==/lib/arm64/libfolly_runtime.so"...
at java.lang.Runtime.load0(Runtime.java:929)
at java.lang.System.load(System.java:1625)
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:25) 
at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:19) 
at com.facebook.hermes.reactexecutor.HermesExecutor.loadLibrary(HermesExecutor.java:23) 
at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory(ReactInstanceManagerBuilder.java:393) 
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:343) 
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:96) 
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:42) 
at com.node.wallet.MainApplication.onCreate(MainApplication.java:45) 
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1266) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6785) 
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2134) 
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:7898) 
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:936) 

/android/build.gradle

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

buildscript {
    ext {
        kotlinVersion = "1.5.30"
        kotlin_version = "1.5.30"
        buildToolsVersion = "31.0.0"
        minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31

        if (System.properties['os.arch'] == "aarch64") {
            // For M1 Users we need to use the NDK 24 which added support for aarch64
            ndkVersion = "24.0.8215888"
        } else {
            // Otherwise we default to the side-by-side NDK version from AGP.
            ndkVersion = "21.4.7075529"
        }
    }
    repositories {
        google()
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:7.2.1")
        classpath('com.google.gms:google-services:4.3.14') // <-- Firebase
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath("de.undercouch:gradle-download-task:5.0.1")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        // RAMP SDK Start ----
        maven { url 'https://www.jitpack.io' }
        maven { url 'https://button.passbase.com/__android' }
        // RAMP SDk End -------

        maven { url "$rootDir/../node_modules/react-native/android" }

        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url(new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../android"))
        }
        maven {
            // Android JSC is installed from npm
            url(new File(["node", "--print", "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), "../dist"))
        }

        google()
        mavenCentral {
            // We don't want to fetch react-native from Maven Central as there are
            // older versions over there.
            content {
                excludeGroup "com.facebook.react"
            }
        }
        jcenter()
    }
}

/android/app/build.gradle

apply plugin: "com.android.application"
apply plugin: 'com.google.gms.google-services' // <- Firebase
import org.apache.tools.ant.taskdefs.condition.Os
import com.android.build.OutputFile

/**
 * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
 * and bundleReleaseJsAndAssets).
 * These basically call `react-native bundle` with the correct arguments during the Android build
 * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
 * bundle directly from the development server. Below you can see all the possible configurations
 * and their defaults. If you decide to add a configuration block, make sure to add it before the
 * `apply from: "../../node_modules/react-native/react.gradle"` line.
 *
 * project.ext.react = [
 *   // the name of the generated asset file containing your JS bundle
 *   bundleAssetName: "index.android.bundle",
 *
 *   // the entry file for bundle generation. If none specified and
 *   // "index.android.js" exists, it will be used. Otherwise "index.js" is
 *   // default. Can be overridden with ENTRY_FILE environment variable.
 *   entryFile: "index.android.js",
 *
 *   // https://reactnative.dev/docs/performance#enable-the-ram-format
 *   bundleCommand: "ram-bundle",
 *
 *   // whether to bundle JS and assets in debug mode
 *   bundleInDebug: false,
 *
 *   // whether to bundle JS and assets in release mode
 *   bundleInRelease: true,
 *
 *   // whether to bundle JS and assets in another build variant (if configured).
 *   // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
 *   // The configuration property can be in the following formats
 *   //         'bundleIn${productFlavor}${buildType}'
 *   //         'bundleIn${buildType}'
 *   // bundleInFreeDebug: true,
 *   // bundleInPaidRelease: true,
 *   // bundleInBeta: true,
 *
 *   // whether to disable dev mode in custom build variants (by default only disabled in release)
 *   // for example: to disable dev mode in the staging build type (if configured)
 *   devDisabledInStaging: true,
 *   // The configuration property can be in the following formats
 *   //         'devDisabledIn${productFlavor}${buildType}'
 *   //         'devDisabledIn${buildType}'
 *
 *   // the root of your project, i.e. where "package.json" lives
 *   root: "../../",
 *
 *   // where to put the JS bundle asset in debug mode
 *   jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
 *
 *   // where to put the JS bundle asset in release mode
 *   jsBundleDirRelease: "$buildDir/intermediates/assets/release",
 *
 *   // where to put drawable resources / React Native assets, e.g. the ones you use via
 *   // require('./image.png')), in debug mode
 *   resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
 *
 *   // where to put drawable resources / React Native assets, e.g. the ones you use via
 *   // require('./image.png')), in release mode
 *   resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
 *
 *   // by default the gradle tasks are skipped if none of the JS files or assets change; this means
 *   // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
 *   // date; if you have any other folders that you want to ignore for performance reasons (gradle
 *   // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
 *   // for example, you might want to remove it from here.
 *   inputExcludes: ["android/**", "ios/**"],
 *
 *   // override which node gets called and with what additional arguments
 *   nodeExecutableAndArgs: ["node"],
 *
 *   // supply additional arguments to the packager
 *   extraPackagerArgs: []
 * ]
 */

project.ext.react = [
    enableHermes: true,
]

apply from: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../react.gradle")

/**
 * Set this to true to create two separate APKs instead of one:
 *   - An APK that only works on ARM devices
 *   - An APK that only works on x86 devices
 * The advantage is the size of the APK is reduced by about 4MB.
 * Upload all the APKs to the Play Store and people will download
 * the correct one based on the CPU architecture of their device.
 */
def enableSeparateBuildPerCPUArchitecture = true

/**
 * Run Proguard to shrink the Java bytecode in release builds.
 */
def enableProguardInReleaseBuilds = true

/**
 * The preferred build flavor of JavaScriptCore.
 *
 * For example, to use the international variant, you can use:
 * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
 *
 * The international variant includes ICU i18n library and necessary data
 * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
 * give correct results when using with locales other than en-US.  Note that
 * this variant is about 6MiB larger per architecture than default.
 */
def jscFlavor = 'org.webkit:android-jsc:+'

/**
 * Whether to enable the Hermes VM.
 *
 * This should be set on project.ext.react and that value will be read here.  If it is not set
 * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
 * and the benefits of using Hermes will therefore be sharply reduced.
 */
def enableHermes = project.ext.react.get("enableHermes", false);

/**
 * Architectures to build native code for.
 */
def reactNativeArchitectures() {
    def value = project.getProperties().get("reactNativeArchitectures")
    return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}

android {
    compileSdkVersion rootProject.ext.compileSdkVersion

    defaultConfig {
        applicationId 'com.node.wallet'
        minSdkVersion 21 // rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 3
        versionName "1.0.0"
        buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
        if (isNewArchitectureEnabled()) {
            // We configure the CMake build only if you decide to opt-in for the New Architecture.
            externalNativeBuild {
                cmake {
                    arguments "-DPROJECT_BUILD_DIR=$buildDir",
                        "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid",
                        "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build",
                        "-DNODE_MODULES_DIR=$rootDir/../node_modules",
                        "-DANDROID_STL=c++_shared"
                }
            }
            if (!enableSeparateBuildPerCPUArchitecture) {
                ndk {
                    abiFilters (*reactNativeArchitectures())
                }
            }
        }
    }
    if (isNewArchitectureEnabled()) {
        // We configure the NDK build only if you decide to opt-in for the New Architecture.
        externalNativeBuild {
            cmake {
                path "$projectDir/src/main/jni/CMakeLists.txt"
            }
        }
        def reactAndroidProjectDir = project(':ReactAndroid').projectDir
        def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) {
            dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck")
            from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib")
            into("$buildDir/react-ndk/exported")
        }
        def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) {
            dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck")
            from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib")
            into("$buildDir/react-ndk/exported")
        }
        afterEvaluate {
            // If you wish to add a custom TurboModule or component locally,
            // you should uncomment this line.
            // preBuild.dependsOn("generateCodegenArtifactsFromSchema")
            preDebugBuild.dependsOn(packageReactNdkDebugLibs)
            preReleaseBuild.dependsOn(packageReactNdkReleaseLibs)
            // Due to a bug inside AGP, we have to explicitly set a dependency
            // between configureCMakeDebug* tasks and the preBuild tasks.
            // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732
            configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild)
            configureCMakeDebug.dependsOn(preDebugBuild)
            reactNativeArchitectures().each { architecture ->
                tasks.findByName("configureCMakeDebug[${architecture}]")?.configure {
                    dependsOn("preDebugBuild")
                }
                tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure {
                    dependsOn("preReleaseBuild")
                }
            }
        }
    }
    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'
        }
    }
    buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
        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
            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
            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 =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }

        }
    }
}

dependencies {
    // implementation 'com.github.RampNetwork:ramp-sdk-android:1.+'
    implementation fileTree(dir: "libs", include: ["*.jar"])
    //noinspection GradleDynamicVersion
    implementation "com.facebook.react:react-native:+"  // From node_modules

    implementation platform('com.google.firebase:firebase-bom:29.1.0') // Firebase BOM
    implementation 'com.google.firebase:firebase-analytics' // Firebase google analytics

    implementation project(':react-native-vector-icons')

    // implementation 'com.github.RampNetwork:ramp-sdk-android:1.+' // ramp!

    def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
    def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
    def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";

    // If your app supports Android versions before Ice Cream Sandwich (API level 14)
    // All fresco packages should use the same version
    if (isGifEnabled || isWebpEnabled) {
        implementation 'com.facebook.fresco:fresco:2.6.0' {
            exclude group: 'com.facebook.soloader', module: 'soloader'
        }
    }

    if (isGifEnabled) {
        // For animated gif support
        implementation 'com.facebook.fresco:animated-gif:2.6.0'
    }

    if (isWebpEnabled) {
        // For webp support
        implementation 'com.facebook.fresco:webpsupport:2.6.0'
        if (isWebpAnimatedEnabled) {
            // Animated webp support
            implementation 'com.facebook.fresco:animated-webp:2.6.0'
        }
    }

    implementation'com.facebook.soloader:soloader:0.10.1'

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

    if (enableHermes) {
        //noinspection GradleDynamicVersion
        implementation("com.facebook.react:hermes-engine:+") { // From node_modules
            exclude group:'com.facebook.fbjni'
        }
    } else {
        implementation jscFlavor
    }
}

if (isNewArchitectureEnabled()) {
    // If new architecture is enabled, we let you build RN from source
    // Otherwise we fallback to a prebuilt .aar bundled in the NPM package.
    // This will be applied to all the imported transtitive dependency.
    configurations.all {
        resolutionStrategy.dependencySubstitution {
            substitute(module("com.facebook.react:react-native"))
                    .using(project(":ReactAndroid"))
                    .because("On New Architecture we're building React Native from source")
            substitute(module("com.facebook.react:hermes-engine"))
                    .using(project(":ReactAndroid:hermes-engine"))
                    .because("On New Architecture we're building Hermes from source")
        }
    }
}

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.implementation
    into 'libs'
}

project.ext.vectoricons = [
    iconFontNames: [ 'MaterialIcons.ttf', 'Entypo.ttf', 'FontAwesome.ttf', 'AntDesign.ttf' ] // Name of the font files you want to copy
]
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"


apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
applyNativeModulesAppBuildGradle(project)

def isNewArchitectureEnabled() {
    // To opt-in for the New Architecture, you can either:
    // - Set `newArchEnabled` to true inside the `gradle.properties` file
    // - Invoke gradle with `-newArchEnabled=true`
    // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
    return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
}

Solutions that I have tried:

  1. Tried downgrading to RN version 0.69.7 -> No success.
  2. #33177 (comment) -> No success.
  3. facebook/hermes#76 -> No success.

Also, I have tried all the solutions mentioned in Github issues in the context of libhermes.so crash or libjscexecutor.so.

Command used to run on android:

npx react-native run-android
shreyakupadhyay wrote this answer on 2022-11-17

I believe, React Native is generating two files libhermes-executor-debug.so and libhermes-executor-release.so. However, the react native codebase and our code both reference these files as well as libhermes.so.

react-native/react.gradle at af6aaff · facebook/react-native (github.com)
react-native/build.gradle at 394486e · facebook/react-native (github.com)

d-mooers wrote this answer on 2022-11-17

Experiencing same issue as well

arkokoley wrote this answer on 2022-11-17

I have this issue as well. i was able to fix the couldn't find DSO to load: libhermes.so by copying libhermes-executor-debug.so to libhermes.so. Still running into couldn't find DSO to load: libjscexecutor.so.

daveosterjr wrote this answer on 2022-11-17

Same issue here too

2022-11-17 15:24:49.991 16426-16426/? E/SoLoader: couldn't find DSO to load: libjscexecutor.so

daveosterjr wrote this answer on 2022-11-18

Update: Works fine in debug builds

shreyakupadhyay wrote this answer on 2022-11-22

@daveosterjr, can you please mention what helped you? Or what can be a suitable fix that can be done at my end.

daveosterjr wrote this answer on 2022-11-22

@shreyakupadhyay I have yet to find a solution. Still getting this error only on release builds.

cortinico wrote this answer on 2022-11-23

Still getting this error only on release builds.

Could you try on a empty project on 0.70 and confirm if the issue is still happening?

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-01
Star Count 106263
Watcher Count 3666
Fork Count 22655
Issue Count 2277

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Result handling in JavalinServletHandler is not properly implemented 0 2022-07-02 2022-11-11
ImportError: pycurl: libcurl link-time version (7.64.1) is older than compile-time version (7.80.0) 4 2021-11-26 2022-11-22
Tomb Worlds Deathmark wrong rules 0 2021-09-24 2022-09-08
Question: is btrfs supported with direct booting? 4 2020-11-06 2022-11-11
SetInterruptHandler and SetMemoryLimit missing 1 2022-03-17 2022-05-19
Choi matrix for depolarizing channel fails 0 2021-02-06 2022-09-21
if PSEverthing fails no fallback is done 2 2021-12-16 2022-11-13
Log4j 2.17 is tagged as vulnerable 2 2021-12-20 2022-09-20
Only the C:\ drive is scanned in the Log4J script 1 2021-12-20 2022-11-13
Feature: custom JavaScript plugins 4 2022-08-06 2022-11-15
IOOBE when pasting a schematic with -b flag 0 2022-05-11 2022-07-07
Colab main cell doing nothing 9 2022-08-07 2022-11-30
Support Deno for Javascript and Typescript 4 2022-02-07 2022-10-31
Animate2D update not backwards compatible, breaks tutorials 6 2022-10-07 2022-11-06
How to set up two sources with phase difference e^ikx? 0 2022-10-05 2022-11-06
prometheus info级别的告警能否支持屏蔽 4 2022-05-09 2022-11-13
[d3d11] Divinity: The Original Sin Enhanced Edition (Steam ID 373420) crashes during resolution change from menu 1 2022-03-22 2022-10-22
Ability to test C++ standard dependant things 0 2022-10-03 2022-11-24
[Feature Request]Drawer/Modal组件增加动画相关事件 0 2022-01-11 2022-11-23
[Bug Report]Page num become chaos when using chrome translate 0 2021-12-24 2022-11-23
Where is the BTC (or USDT) estimated value in balance() ? 2 2021-10-03 2022-11-15
appimage版本在18.04下无法输入中文(fcitx) 10 2019-08-17 2022-11-20
[CT-416] [Bug] Under certian circumstances releases can be tagged incorrectly without raising errors/warnings 2 2022-03-23 2022-10-13
Constructing CelType::List seems impossible 0 2021-10-22 2022-11-30
add support for vim and other emacs flavours 0 2022-03-07 2022-11-13
no audio in quickview player for mkv files 8 2021-09-07 2022-11-18
Color codes are always written to stdout 1 2022-11-03 2022-11-19
Rider IDE Fatal Error 1 2020-08-19 2022-11-02
IgnoredScopes and SkippedScopes not working 2 2022-08-23 2022-11-23
PHP 8.1 issue 1 2022-01-14 2022-01-11
Grouping of startup statements broke "statement" pooling 6 2022-01-26 2022-09-25
Poetry does not tag OS-specific dependencies properly 2 2022-04-11 2022-10-23
(inactive) katdetectr 1 2022-05-23 2022-11-15
Add Sharepoint support 2 2022-06-18 2022-11-21
[vite:plugin-legacy] custom paths for legacy scripts 1 2022-11-11 2022-11-21
amp-twitter module script has non-disappearing placeholder 6 2021-10-20 2022-01-23
Web Scraper Improvements - Work Better with Bot Detectors 7 2021-03-19 2022-11-26
[l10n] Improve Hebrew (he-IL) locale 0 2021-12-16 2022-01-29
MissingMethodException 1 2021-08-18 2022-08-23
Bug: `end_hour` argument is missing for `wellbeing_report()` 1 2021-08-25 2022-10-24
Multiaddr duplicated p2p protocol in relay reservation 5 2022-06-07 2022-10-02
Not limiting charge macOS Monterey 1 2021-11-30 2022-08-03
Request to join the dwyl organization 2 2021-09-05 2022-11-16
There are simpler fixes! 1 2021-10-26 2022-11-13
[bug] Tauri not building an app on Linux Ubuntu 18.04 due to dependency mismatch 2 2022-11-14 2022-11-23
[feat] electron-is-dev alternative or workaround 2 2022-11-14 2022-11-23
Endpoint container doesn't resolve InstanceProfileCredentialsProvider for Fargate execution role 3 2021-01-12 2022-10-27
Connecting to a file server via SMB is not working 4 2021-08-14 2022-11-28
ramifications of changing "disableDefaultMutations" from TRUE -> to FALSE ? 1 2022-08-24 2022-11-22
Cannot deploy google api gateway config with wildcards in endpoint path 5 2022-07-19 2022-11-29