2 years ago
#32564
David
Loading Flutter SO files Dynamically Crashes
I am new to flutter. I have used the add 2 app concept from flutter documentation
https://docs.flutter.dev/development/add-to-app
to one of my existing android project its working fine. The issue begans with the size of my android app with flutter module was 45MB,So i decided to excluded the flutter .SO files (libapp.so,libflutter.so) and loaded them from the internal storage by downloading it from server for specific architecture("armeabi-v7a", "arm64-v8a", "x86", "x86_64") using System.loadLibrary(path+"libflutter.so").
The libflutter.so loaded successfully and i can open my flutter app,when i exclude the libapp.so files and loaded them at runtime then my flutter app crashes with following output.
This way I initialize my flutter engine
Can we load the libapp.so files of flutter dynamically?.What is the issue ?..
android
flutter
.so
flutter-add-to-app
0 Answers
Your Answer