銆怰N灏忚銆戣В鍐?couldnot find DSO to load: libhermes.so

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了銆怰N灏忚銆戣В鍐?couldnot find DSO to load: libhermes.so相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/solution' title='solution'>solution   error   inf   ORC   creat   闂€€   椤圭洰   ase   nat   

鍓嶄娇鐢≧N鐗堟湰鍙? 0.62.2 锛屽皢椤圭洰鎵撳寘release 鐨?apk 鏃?锛屽畨瑁呭悗鎵撳紑App闂€€锛屽畬鏁撮敊璇涓嬶細

2020-06-04 17:28:25.648 1375-1391/? E/SoLoader: couldn鈥榯 find DSO to load: libhermes.so

    --------- beginning of crash
2020-06-04 17:28:25.649 1375-1391/? E/androidRuntime: FATAL EXCEPTION: create_react_context
    Process: com.microrelay, PID: 1375
    java.lang.UnsatisfiedLinkError: couldn鈥榯 find DSO to load: libhermes.so
        at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:789)
        at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:639)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:525)
        at com.facebook.hermes.reactexecutor.HermesExecutor.<clinit>(HermesExecutor.java:20)
        at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:29)
        at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:997)
        at java.lang.Thread.run(Thread.java:764)

鎶€鏈浘鐗? src=

涓€鐣悳绱㈡壘鍒拌В鍐虫柟妗堬細( 鍘?issues 鍦板潃锛?a href="https://github.com/facebook/react-native/issues/25923" rel="nofollow">https://github.com/facebook/react-native/issues/25923 )

鍦?android/app/build.gradle 鏂囦欢涓?娣诲姞濡備笅閰嶇疆锛?/p>

configurations.all {
    resolutionStrategy {
        force "com.facebook.soloader:soloader:0.8.2"
    }
}

鎶€鏈浘鐗? src=

以上是关于銆怰N灏忚銆戣В鍐?couldnot find DSO to load: libhermes.so的主要内容,如果未能解决你的问题,请参考以下文章

RN小记解决 couldnot find DSO to load: libhermes.so

React Native 小记解决 Android 打包后闪退Error: E/SoLoader: couldnot find DSO to load: libhermes.so

绁?缁?缃?缁?鍐?閮?闀?鍟?鏍凤紵

銆愬墤鎸噊ffer銆戣皟鏁存暟缁勯『搴忎娇濂囨暟浣嶄簬鍋舵暟鍓嶉潰

Laya LoaderManager灏忚

鏈€灏忚〃绀烘硶 P1368