Comments (5)
Hi @plecesne, thanks for reaching out. Can you confirm that this is still happening with 0.6.0? I was under the impression that the PR #26 should have fixed exactly that issue.
from soloader.
It looks like the fix for this bug was to extract libraries from the APK(s) manually.
Is that correct?
If so, that doesn't seem like a great solution, as it adds more startup time (especially on first launch when the .so files are extracted) and uses more storage space. Is it not possible just to load uncompressed libraries directly from the APK, as is standard since Android M?
from soloader.
PR #26 seems only related to support of split APKs, i.e. the fact that the native libraries are in a separate APK.
What I'm mentioning is the fact that the native libraries are not extracted from the APK at installation time for App Bundles built from Gradle 3.3 (for devices on M+), hence any attempt at loading the libraries differently than System.load
or System.loadLibrary
, such as trying to locate them in the install directory (e.g. new File(<install-dir>/libxxx.so)
like I see here) will lead to a crash or at least a file not found.
from soloader.
Today I have investigated the exact same issue and it seems that with 0.6.0 it's already solved.
We're using react-native 0.56.0 and we've encountered the issue when we upgraded the gradle plugin from 3.2.1 to 3.3.x.
react-native 0.56.0 depends on SoLoader 0.3.0 and unfortunately for some ABI changes introduced in 0.5.0 I cannot force the 0.6.0 version.
This seems to happen only when using App Bundle with gradle plugin 3.3.x and SoLoader < 0.6.0.
We have temporarily reverted to gradle plugin 3.2.1 while waiting to be able to upgrade react-native.
from soloader.
Great to know, thanks!
Do you know by any chance in which release react-native depends on SoLoader 0.6.0? Otherwise, I can chase that information on react-native GitHub project.
from soloader.
Related Issues (20)
- Wrongly loaded directApkLdPath HOT 2
- "java.lang.UnsatisfiedLinkError: couldn't find DSO to load" on 64-bit only environment HOT 9
- API sigh ault
- SoLoader: libjscexecutor.so not found on /data/app/ HOT 4
- UnsatisfiedLinkError: couldn't find DSO to load: libgifimage.so caused by: dlopen failed HOT 1
- YogaLayout does not recalculate its dimension for any runtime change in children dimension HOT 1
- Lo
- couldn't find DSO to load: libhermes-executor-debug.so HOT 3
- SoLoader version with errors The app uses a buggy version of the SoLoader SDK, which can cause crashes. Update to a valid version of SoLoader. HOT 3
- Please add troubleshooting docs for "couldn't find DSO to load" errors
- [test_only] test task creation
- Insecure hashing algorithm MD5 used
- Your app uses a defective version of the SoLoader SDK, which can cause your app to crash. Update to a fixed version of SoLoader.
- MainApplication.onCreate java.io.IOException - could not delete: /data/user/0/PACKAGE_NAME/lib-0/libfolly_futures.so HOT 1
- Pixel 8 Issue - UnsatisfiedLinkError HOT 8
- dso_lock: open failed: EACCES (Permission denied) HOT 2
- Next version release HOT 2
- UnsatisfiedLinkError dlopen failed: library "libhermes.so" not found HOT 2
- java.lang.UnsatisfiedLinkError dlopen failed: library "libhermes.so" not found
- android.os.strictmode.DiskReadViolation crash on app start
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soloader.