flipper: couldn't find DSO to load: libflipper.so caused by: dlopen failed: library "libevent_extra-2.1.so" not found result: 0

πŸ› Bug Report

After upgrading to Flipper 0.31.2 and SoLoader 0.8.2, we had a runtime crash like below

2020-02-20 15:53:56.168 25246-25324/com.Slack.internal.debug E/SoLoader: couldn't find DSO to load: libflipper.so caused by: dlopen failed: library "libevent_extra-2.1.so" not found result: 0
2020-02-20 15:53:56.169 25246-25324/com.Slack.internal.debug E/AndroidRuntime: FATAL EXCEPTION: FlipperEventBaseThread
    Process: com.Slack.internal.debug, PID: 25246
    java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libflipper.so caused by: dlopen failed: library "libevent_extra-2.1.so" not found result: 0
        at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:825)
        at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:673)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:611)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:559)
        at com.facebook.flipper.android.EventBase.<clinit>(EventBase.java:19)
        at com.facebook.flipper.android.FlipperThread.run(FlipperThread.java:25)

To Reproduce

Unfortunately happens in our internal project

Expected Behavior

Doesn’t crash

Environment

Android 10, target/compile SDK 29

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 16 (5 by maintainers)

Most upvoted comments

delete the app/build folder solve my problem, now it works.

@Isaacmeedinaa if you found this through a react-native error, I set the flipper version to 0.105.0, and it went this past this bug.

@stopachka that worked great to fix my issue above everything else. I had to find mine through logcat as it was a hard crash.

Cheers πŸ˜ƒ β€” let me know if ever in NYC!

Based on the logcat, started looking deeper into flipper. Ended up discovering this in their docs:

https://fbflipper.com/docs/getting-started/react-native/#using-the-latest-flipper-sdk

On Tue, Sep 14, 2021 at 4:28 PM Daniel Stepp @.***> wrote:

@Isaacmeedinaa https://github.com/Isaacmeedinaa if you found this through a react-native error, I set the flipper version to 0.105.0, and it went this past this bug.

Lifesaver! Thank you, have a 🍺 on me. May I ask how you figured that out?

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/facebook/flipper/issues/824#issuecomment-919489180, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHQL7VM3O4D7OSD24GCFSDUB6V65ANCNFSM4KZ4MVBQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

This does not work with flipper version 0.54.0

Still occur on 0.49.0.

delete app/build or rebuild not solve it.

Solve it by changing implementation "com.facebook.flipper:flipper:0.49.0" to implementation "com.facebook.flipper:flipper:0.49.0@aar"

add a @aar suffix.