-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Release Mode Android | couldn't find "libflutter.so" #36
Comments
Hi, when you build apk, try the command. if you still have the same 'couldn't find "libflutter.so"' error, in that case, change your android build.gradle file something like below. and try the command below. |
Thanks. Right, as described here flutter/issues/18939, this makes the app run. But my problem is that I will not be able to publish the app to the PlayStore as I will be targeting only one architecture. I have tested several other plugins that are not creating the described problem. Any ideas as to why this is happening? |
Hi, Thanks reporting and commenting! I'll check it later ASAP! 😄 |
that's true. |
Ok after several testing I have the below (my device is 64-bit). Targeting 64-bit architecture does work. However targeting 32-bit reproduces the issue. To get the 32-bit version running I need to use: |
Is there any update on this? |
Hi, @Albert221 #36 (comment) does not resolve your issue? |
This works for me! Thank you sooooooooo much! |
hey , so first thank you , second does that mean I have to produce two different apks? or the first command is enough for the two versions ? |
@afamobius What's your minSdkVersion? |
@afamobius So is it backwards compatible without |
any solution? i have upgrade flutter to 1.7.4 still app crash while open. |
After Upgraded flutter to 1.7.4 new error comes how to resolve this in flutter version?
_ |
this works for me |
After none of the solutions above worked for me, i looked into the documentation and found that it worked fine when i ran |
still getting same issue with new flutter version even the pp bundle contin both 32 and 64 Fatal Exception: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/kw.ltd.instagram_app-qzaBIcobpGp9vljkJD7Y1Q==/base.apk"],nativeLibraryDirectories=[/data/app/kw.ltd.instagram_app-qzaBIcobpGp9vljkJD7Y1Q==/lib/arm64, /system/lib64, /vendor/lib64, /system/product/lib64]]] couldn't find "libflutter.so" |
Same.. |
do you run build appbundle or apk or splitapk |
We need fix from the flutter team
…On Sat, Mar 28, 2020, 07:20 aldwnesx ***@***.***> wrote:
this works for me
defaultConfig {
ndk {
abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a', 'mips', 'mips64',
'arm64-v8a'
}
}
do you run build appbundle or apk or splitapk
?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#36 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJEI6XUX65EMVPKSESAE73RJV3H5ANCNFSM4FVJBN6A>
.
|
Hello. Trying to build flutter app for x86 32 bit, but libflutter.so is not generated. armv7, arm46 and x86_64 are generated without issues |
Any fixes guys :( ? |
I have the same problem.
but after adding this line in build.gradle then my app doesn't work on x86 emulators. |
Getting this in production. Not cool. Fatal Exception: java.lang.UnsatisfiedLinkError Firebase Crashlytics says the devices are Android 7.1.2 (TaintArt for x86) and 8.1.0 (Nexus 5X) |
Getting the same error as @emadd .. |
I'm integrating flutter in some existing app and I have the same error |
I have the same issue with Android 5.1 and 5.1.1: |
Same here, tested all configurations proposed. 2 years and still open. |
Still not working...missing libflutter.so from x86 Flutter 2.8.1 |
Hi all,
I'm having an issue when using the library and building a release apk for Android.
flutter -v doctor
[√] Flutter (Channel beta, v0.7.3, on Microsoft Windows [Version 10.0.17134.285], locale fr-FR)
• Flutter version 0.7.3 at C:\Users\lance\Dev\SDK\flutter
• Framework revision 3b309bda07 (3 weeks ago), 2018-08-28 12:39:24 -0700
• Engine revision af42b6dc95
• Dart version 2.1.0-dev.1.0.flutter-ccb16f7282
[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at C:\Users\lance\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 28.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] IntelliJ IDEA Community Edition (version 2018.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.5
• Flutter plugin version 28.0.4
• Dart plugin version 182.4323.44
[√] Connected devices (1 available)
• ONEPLUS A3003 • 94e1fa9b • android-arm64 • Android 8.0.0 (API 26)
• No issues found!
Reproduce issue
Create an empty flutter project
Replace main.dart with
https://pub.dartlang.org/packages/mlkit#-example-tab-
mlkit: ^0.6.2 image_picker:
run $ flutter build apk
I am getting the following
AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/eu.my-domain.mlkit-test-VnjMxahfeCGMItX8kAUbAg==/base.apk"],nativeLibraryDirectories=[/data/app/eu.my-domain.mlkit-test-VnjMxahfeCGMItX8kAUbAg==/lib/arm64, /data/app/eu.my-domain.mlkit-test-VnjMxahfeCGMItX8kAUbAg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]] couldn't find "libflutter.so"
This seems to be linked to
flutter/flutter#18939
flutter/flutter#18494
Any ideas why this is hapenning?
The text was updated successfully, but these errors were encountered: