-
Notifications
You must be signed in to change notification settings - Fork 509
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
Example app crashes when building using flutter build apk on 64 bit devices. #45
Comments
interesting find @yoavrofe, not much we can do on our end. Maybe we should create an issue upstream? |
I'll be glad if you could create the issue, as I think you are more experienced with Android ABI. |
@tobrun did you ever open an issue upstream for this? I just tested this and if I build a fat apk (with |
I Just use build an appbundle or use --split-per-abi. Closing this at this time since, as you noted,
|
Running
flutter build apk
and thenflutter install
builds the apk and installs it on the device. However, running the app results in a crash on 64bit devices.This happens because the Flutter builder doesn't include libflutter.so for all ABIs. Inspecting the apk file can be done by dragging the apk onto Android Studio. As can be seen in the picture, only the armeabi-v7a directory has both
libmapbox-gl.so
andlibflutter.so
.A temporary workaround can be done by adding the following to the app/build.gradle
defaultConfig {
...
ndk { abiFilters 'armeabi-v7a' }
}
This builds only the 32bit ARM abi. However, this is not the right way to do it, and Google stated it'll force 64bit support for APKs on the Play Store starting from this summer. This also causes crash on my device when debugging the app.
The text was updated successfully, but these errors were encountered: