question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When building via App Bundle, Fresco fails to find "libimagepipeline.so"

See original GitHub issue

Description

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

  1. Create a sample application that uses Fresco
  2. Generate a signed Bundle
  3. Using Bundle Tool build the APKs from the Bundle
  4. Using Bundle Tool, install the APK on to your device
  5. Navigate to Activity where Fresco is initialised
  6. 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:closed
  • Created 5 years ago
  • Reactions:15
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

14reactions
nesterov-ncommented, Dec 28, 2018

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.

repositories {
    maven {
        url  "https://dl.bintray.com/nnesterov/maven" 
    }
}

compile('com.facebook.fresco:fresco:1.10.0') {
    exclude group: 'com.facebook.soloader', module: 'soloader'
}
compile("com.avito.android:patched-soloader:0.1.0")
10reactions
oprisnikcommented, Jan 23, 2019

We’ve landed the SoLoader fix. We’ll release a new Fresco version soon once the SoLoader version has been released.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found