Android Studio 构建成功后React原生应用崩溃

gijlo24d  于 2022-11-16  发布在  Android
关注(0)|答案(1)|浏览(160)

我的应用程序在构建后崩溃,没有任何错误。后来调试后,我发现下面的Android Studio的logcat错误。如何解决这个问题。

E/AndroidRuntime: FATAL EXCEPTION: create_react_context
    Process: com.myapp, PID: 11305
    java.lang.UnsatisfiedLinkError: dlopen failed: library "libfolly_json.so" not found: needed by /data/app/~~4gp2E7YtL8o-49YMQ4uIrQ==/com.myapp-7jUAREIQl67FHrb4so-s0Q==/lib/arm64/libreanimated.so in namespace classloader-namespace
        at java.lang.Runtime.loadLibrary0(Runtime.java:1077)
        at java.lang.Runtime.loadLibrary0(Runtime.java:998)
        at java.lang.System.loadLibrary(System.java:1656)
        at com.swmansion.reanimated.NativeProxy.<clinit>(NativeProxy.java:26)
        at com.swmansion.reanimated.NodesManager.initWithContext(NodesManager.java:140)
        at com.swmansion.reanimated.ReanimatedJSIModulePackage.getJSIModules(ReanimatedJSIModulePackage.java:24)
        at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1389)
        at com.facebook.react.ReactInstanceManager.access$1200(ReactInstanceManager.java:136)
        at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:1108)
        at java.lang.Thread.run(Thread.java:920)
I/Process: Sending signal. PID: 11305 SIG: 9
vof42yt1

vof42yt11#

似乎您没有安装重新激活的库。请安装

npm i react-native-reanimated

然后同步gradle并尝试运行应用程序。

相关问题