Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Bundle : couldn't find DSO to load: libfb.so #46

Closed
JeromeCHA opened this issue Aug 27, 2019 · 25 comments
Closed

App Bundle : couldn't find DSO to load: libfb.so #46

JeromeCHA opened this issue Aug 27, 2019 · 25 comments

Comments

@JeromeCHA
Copy link

JeromeCHA commented Aug 27, 2019

We tried to use App Bundle on our native Android app, but it crashes right after we launch the installed apks with the following error:

2019-08-27 16:48:27.394 E/com.facebook.soloader.NativeLibrary: Failed to load native lib: 
    java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libfb.so
        at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:455)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:371)
        at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:336)
        at com.facebook.soloader.NativeLibrary.loadLibraries(NativeLibrary.java:56)
        at com.facebook.soloader.NativeLibrary.ensureLoaded(NativeLibrary.java:77)
        at com.facebook.android.crypto.keychain.AndroidCryptoLibrary.ensureCryptoLoaded(AndroidCryptoLibrary.java:32)
        at com.facebook.crypto.Crypto.isAvailable(Crypto.java:57)

With apk, it works fine.

Even the "patched" here, on the merged PR, doesn't work for us #26

We've made some research and it looks like it is related to this issue, but we couldn't figure out how to fix it. facebook/react-native#23764
Should we have to wait until this issue is fixed? or does anyone know how to fix it?

Edit: We are using
implementation ("com.facebook.conceal:conceal:2.0.2@aar")

Thank you in advance :)

@barnhill
Copy link

We have run into this as well.

@JeromeCHA
Copy link
Author

Since It has been 1 week after I post this issue, does anyone know if they are working on it or not?

@victorlaerte
Copy link

We are also having this problem 😢

@oprisnik
Copy link
Contributor

SoLoader 0.8.0 should fix this problem. We didn't release a Fresco version that bundles it yet, but you can force the version, see facebook/react-native#25490 (comment)

@victorlaerte
Copy link

@oprisnik is there any idea when a new version for com.facebook.conceal using 0.8.0 will be released?

@JeromeCHA
Copy link
Author

I am also waiting for a newest version of com.facebook.conceal using 0.8.0 ^^

@oprisnik
Copy link
Contributor

oprisnik commented Oct 2, 2019

In the meantime, does forcing the SoLoader version to 0.8.0 not work for Conceal?

@IamMasterWayne
Copy link

+1

@JeromeCHA
Copy link
Author

JeromeCHA commented Oct 29, 2019

In the meantime, does forcing the SoLoader version to 0.8.0 not work for Conceal?

@oprisnik I tried, but I still have the same error. 😥
Does anyone have tried?

@victorlaerte
Copy link

@JeromeCHA yeah, it doesn't work. :(

@barnhill
Copy link

Any update on this?

@wooyukit
Copy link

wooyukit commented Dec 4, 2019

same here
Screenshot 2019-12-04 at 4 18 27 PM

Any solution for this?

@barnhill
Copy link

barnhill commented Dec 5, 2019

They don't seem to support this any longer

@wooyukit
Copy link

wooyukit commented Dec 6, 2019

😱
I am using Litho framework for my project so I must init soloader at beginning. 😩

@illwiz
Copy link

illwiz commented Feb 24, 2020

please release new conceal version that use the latest soloader, back to using apk :(

@illwiz
Copy link

illwiz commented Feb 24, 2020

In the meantime, does forcing the SoLoader version to 0.8.0 not work for Conceal?

@oprisnik I tried, but I still have the same error. 😥
Does anyone have tried?

Tried it and facebook/react-native#25415 (comment)
still facing java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libfb.so

@barnhill
Copy link

barnhill commented Feb 24, 2020 via email

@kakali
Copy link

kakali commented Jun 4, 2020

There is one optimisation that might still work (it does in my case), instead of using plain old fat apk. We may still use aab, but disable splitting by architecture. To do this, we have to add a bundle {} block within the android {} block in the build.gradle file:

bundle {
        language {
            enableSplit = false
        }
        density {
            enableSplit = true
        }
        abi {
            enableSplit = false
        }
    }

Of course, it's still just a workaround.

@barnhill
Copy link

barnhill commented Jun 5, 2020

This is not a workaround as some of us the major benefit of bundling would come from splitting by arch.

@kakali
Copy link

kakali commented Jun 5, 2020

This is not a workaround as some of us the major benefit of bundling would come from splitting by arch.

Yep, I know. I'm lucky that in my app the main benefit comes from splitting by resources. Another thought was, maybe it would be possible to still split by arch and everything, but keep a dependency (conceal in this case) fat (?). But I didn't pursue this further.

@barnhill
Copy link

barnhill commented Jun 5, 2020 via email

@ahmetkocu
Copy link

Hi @barnhill,

Did you successfully migrate the library? How can we decrypt old data?

Is there a way to decrypt old data without Conceal lib?

@barnhill
Copy link

We left the conceal lib in and decrypted with it. Then we encrypted with Tink. After several months of converting in place we removed conceal.

@nb7123
Copy link

nb7123 commented Sep 17, 2021

See the issues REPO

@simpleton
Copy link
Member

Version 0.10.3 has been released which includes this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests