0

I am receiving this error when building an Android application after upgrading my react native version from 0.67 to 0.69. Is there anyone who can help me with this problem?

Error: Exception in HostFunction: java.lang.UnsatisfiedLinkError: dlopen failed: library "libreanimated.so" not found

SecretAgentMan
  • 2,856
  • 7
  • 21
  • 41
User511
  • 1,456
  • 10
  • 28

1 Answers1

0

First stop your metro bundler delete nodemodules

add the follow line in android/build.gradle

  ext {
            ...
       
             kotlinVersion = "update kotlin Version" // 1..4.10
           
        }
   

reIntall the nodemodules clean the gradlew

cd android && ./gradlew clean

and if you are using proguard rule then add this line

-keep class com.swmansion.reanimated.** { *; }
-keep class com.facebook.react.turbomodule.** { *; }

hope so after implement this solution you can fix your bug