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)
Unfortunately happens in our internal project
Doesn't crash
Android 10, target/compile SDK 29
@ZacSweers Sorry for the inconvenience! Can you share what architecture your emulator has?
Same issue here.
App crashing on start with below error:
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)
Internal project also but I can reproduce with the following dependencies:
Crashing:
Flipper : 0.31.0
SoLoader: 0.8.1
Fragment: androidx.fragment:fragment-ktx:1.2.2
Working:
Flipper : 0.31.0
SoLoader: 0.8.1
Fragment: androidx.fragment:fragment-ktx:1.2.1
Changing the fragment dependency seems to make it crash every time.
No crash
Re: @ZacSweers post above, the device we saw the issue on was a Pixel 3A.
I've got a 2XL. Will try it out on that one today. Should be close enough.
I've installed the sample app on my 2XL where it worked fine.
Additionally, I tried to add fragment-ktx in both versions which also didn't seem to make a difference and set the Flipper version to the published 0.31.0 artifacts.
Could you try to install our sample app and see if that causes the same issue on the phones / emulators you have? Annoyingly, we don't have it on the most recent releases here but it should show up soon on the one that's landing right now: https://github.com/facebook/flipper/releases (give it ~1h from now)
same issue here.
@passy But works when I install the latest android sample apk.
Flipper : 0.35.0
Soloader : 0.8.2
XiaoMi A1 - Android 9
delete the app/build folder solve my problem, now it works.
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.
Closing as the issue seems solved with two possible solutions
delete the
app/buildfolder solve my problem, now it works.
./gradlew clean worked for me.
Most helpful comment
delete the
app/buildfolder solve my problem, now it works.