couldn‘t find DSO to load: libjscexecutor.so caused by :dlopen failed:library“libjsc.so“ not found

时间:2024-03-13 16:49:05

本次记录下RN升级遇到的错误:因项目是Android+RN混合开发;

由于项目原因需要将RN进行强制升级:0.57.5---0.62.2;

升级RN版本涉及到需要的组件升级以及适配Androidx的属性;

固在Android原生进入RN项目时报如下错误:

couldn‘t find DSO to load: libjscexecutor.so caused by :dlopen failed:library“libjsc.so“ not found
couldn't find DSO to load: libjscexecutor.so caused by :dlopen failed:library"libjsc.so" not found ;

解决方案:

1、在 android/app/build.gradle 文件中 添加如下配置:

couldn‘t find DSO to load: libjscexecutor.so caused by :dlopen failed:library“libjsc.so“ not found

2、

在android/app/build.gradle下修改新增:

couldn‘t find DSO to load: libjscexecutor.so caused by :dlopen failed:library“libjsc.so“ not foundIntlJsc = false

couldn‘t find DSO to load: libjscexecutor.so caused by :dlopen failed:library“libjsc.so“ not found

if (useIntlJsc) {
 重新编译mentation 'org.webkit:android-jsc-intl:+'
else {
    implementation 'org.webkit:android-jsc:+'
}