-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
libapp.so
not found on Android 4.1.2
#35838
Comments
@jason-simmons are you able to have a look? |
/cc @angel1st |
@tvolkert - thanks for subscribing me to the issue. |
…ot be loaded by name libapp.so contains compiled application Dart code. On most Android systems, this library can be loaded by calling dlopen("libapp.so"), which will search Android's default library directories. On some Android devices this does not work as expected. As a workaround, this patch provides a fallback path to libapp.so based on ApplicationInfo.nativeLibraryDir. Fixes flutter/flutter#35838
…ot be loaded by name libapp.so contains compiled application Dart code. On most Android systems, this library can be loaded by calling dlopen("libapp.so"), which will search Android's default library directories. On some Android devices this does not work as expected. As a workaround, this patch provides a fallback path to libapp.so based on ApplicationInfo.nativeLibraryDir. Fixes flutter/flutter#35838
@tvolkert - I can see the issue has been closed, which I guess is a good sign. When should I expect to see it in stable channel, so I can build my apps? |
@tvolkert - I have built both arm32 & arm64 version in master channel. Unfortunately neither 64 nor 32 version works. I have tested 32 version on S3 mini (Android 4.1.2) and 64 on S8 (Android 9). On both phones I have the same use case - after the app is installed and started I can see the splash screen for a moment, then the app closes.
|
@angel1st thanks for the help! If you wouldn't mind emailing the APKs to me at tvolkert@google.com, we'll have a look. |
@tvolkert - I wasn't able to send you the files, so I will leave them here - |
@tvolkert Hi! I am also having issues on Samsung devices. Could you take a look please? |
And this is APK. #36128 |
Is this fixed now @franciscojma86? |
Seems like it closed automatically when I pushed master to my fork, but not sure why. Re-opening. |
I've the same issue on some devices with android 4.2.2 and android 4.1.2 expecially with Samsung |
@angel1st @abdullayev007 @campioncino having the built APKs is proving less useful than I had hoped -- are any of you willing to share the source (and instructions for how you're building) so we can build the apps ourselves in order to diagnose? If you are, you could push to a private GitHub repo and add me as a committer on the repo so I could access the code. |
[✓] Flutter (Channel stable, v1.7.8+hotfix.3, on Linux, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0) [✓] Android Studio (version 3.4) [!] Connected device ! Doctor found issues in 1 category. |
@campioncino that version (the current stable version) doesn't have the fix. Can you try switching to the master channel, running Thanks! |
Yes, I'll try, but I have to find an old Samsung Galaxy Tab to try on |
@abdullayev007 Took a look at your app and saw it crashing on older Android devices with this exception:
This was happening due to Android's MultiDex format (https://developer.android.com/studio/build/multidex) The app's If MultiDex is not required for this app, then remove that line. If you do need MultiDex, then change the app to use a custom |
Status on this bug:
Given all that, I'm going to close this bug again. The only remaining open issue that's been covered herein is now covered by #36398. |
…ot be loaded by name (flutter#9762) libapp.so contains compiled application Dart code. On most Android systems, this library can be loaded by calling dlopen("libapp.so"), which will search Android's default library directories. On some Android devices this does not work as expected. As a workaround, this patch provides a fallback path to libapp.so based on ApplicationInfo.nativeLibraryDir. Fixes flutter/flutter#35838
…ot be loaded by name (#9762) libapp.so contains compiled application Dart code. On most Android systems, this library can be loaded by calling dlopen("libapp.so"), which will search Android's default library directories. On some Android devices this does not work as expected. As a workaround, this patch provides a fallback path to libapp.so based on ApplicationInfo.nativeLibraryDir. Fixes flutter/flutter#35838
This is the first step in getting esoteric devices wired up to device lab to ensure that we can at least start Flutter apps in profile mode on such devices. flutter#35838
@jason-simmons But can this happen on Android 9 devices? Reports coming from Samsung Galaxy j4+,j6+ users, not from older android users. |
@abdullayev007 not the originally filed issue. There have been a few distinct bugs reported, and it's important that we don't conflate them, or it just adds confusion. |
@tvolkert thanks a lot! |
This is the first step in getting esoteric devices wired up to device lab to ensure that we can at least start Flutter apps in profile mode on such devices. #35838
Thanks to the fix by the flutter team, cf. flutter/flutter#35838 (comment)
Flutter version:
Logcat Crash report:
|
@mahmed8003 this bug is known to exist in |
This is the first step in getting esoteric devices wired up to device lab to ensure that we can at least start Flutter apps in profile mode on such devices. flutter#35838
2020-10-19 13:34:05.257 30593-30593/com.arrail.app_t E/flutter: [ERROR:flutter/runtime/dart_vm_data.cc(19)] VM snapshot invalid and could not be inferred from settings. |
@lv823063712 Update your Flutter version using |
having this exact crash, after upgrading to Flutter 2.0. running a flutter module in an Android app, in release mode , and whenever the module is about to launch - the app crashes, with this VM crash |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
flutter build apk
adb install <apk>
on a device running Android 4.1.2 (I used Galaxy S3 mini)Related to #18494 (comment)
The text was updated successfully, but these errors were encountered: