When building via App Bundle, Fresco fails to find "libimagepipeline.so"
See original GitHub issueDescription
When launching an Activity that uses Fresco, which has been generated via Android App Bundle, it fails to find “libimagepipeline.so” and crashes the application.
Reproduction
- Create a sample application that uses Fresco
- Generate a signed Bundle
- Using Bundle Tool build the APKs from the Bundle
- Using Bundle Tool, install the APK on to your device
- Navigate to Activity where Fresco is initialised
- Observe crash
Solution
I originally thought this might have been an issue with minify, R8, or Proguard, but I disabled all of those, and still observed the same result when building via App Bundle.
I have tested other components of my app that also use native libraries, but they all operate as expected, only with Fresco struggling to load the respective binary.
A temporary, but not ideal solution I found is disabling splitting of APK’s by abi
using the following configuration, but including all the binaries results in a significantly larger APK size.
android {
// Rest of your configuration here
bundle {
abi {
enableSplit false
}
}
}
Additional Information
- Fresco version: 1.10.0
- Platform version: Samsung SM-G955F, Android 8.0.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:21 (7 by maintainers)
Top Results From Across the Web
Missing .so file lib when building in App Bundle - Stack Overflow
I tried many solutions (ndk, abifilters, split, etc.) but nothing worked. I'm using Android Studio arctic fox 2020.3.1 version. java · android ...
Read more >Adobe Design Mobile Bundle: Enhance graphics with effects ...
Unleash your creativity on iPad with apps for photo editing, graphic design, art, and social media. Five apps that work better together —...
Read more >kenilt
Since jCenter is hosted on JFrog Bintray, so you have to signup there. ... file rootDir/yourlibrary/build.gradle apply plugin: 'com.android.library' apply ...
Read more >Adobe's Photoshop and Fresco iPad apps get new $10 per ...
Adobe is now bundling Photoshop for iPad and Fresco Premium into one package for just $9.99 a month, while Creative Cloud customers with...
Read more >Java.lang.unsatisfiedlinkerror: 找不到要加载的dso, React-native ...
UnsatisfiedLinkError: could't find DSO to load: libyoga.so cause: APK is built for a ... Android: Unable to build app in React native version...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have found out an issue in SoLoader lib used by Fresco. I have prepared PR with a fix: facebook/soloader#26 That fix makes fresco works fine with app bundle. I have published the patched version of SoLoader lib. You can use it in your project if you can’t wait till PR is merged.
We’ve landed the SoLoader fix. We’ll release a new Fresco version soon once the SoLoader version has been released.