-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Flutter needs to declare abiFilters
for only supported architectures by default
#153476
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
Comments
Thanks for the report. Treating this as a proposal and labeling as applicable for team's attention. Reverted PR: #142089 |
Punting to |
Huh, I was not aware this was reverted. Assigning to myself |
@gmackall I don't think adding the This looks more like an issue with Android App Bundles and Google Play itself and how it dishes out APKs to be installed on the different architectures. Or there might even be an issue on how it generates the different APKs from the AAB and referencing the wrong |
@gmackall Have a look at my #151638 (comment). It is looking for Trying to load |
@Dooks123 this issue is specifically about preventing Flutter from declaring that it can't run on the unsupported x86 architecture. (Nevertheless the path issue you pointed out is real, as covered in the other issue you linked.) |
Interesting read about Android ABIs and to get a better understanding on how it works: But I think this is an If you had an APK with all the ABIs - you'd have no problem at all. |
@Dooks123 again you are commenting on the wrong issue. |
This issue is assigned to @gmackall but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks! |
@darshankawar What else needs to be done for triage on this bug? See also #151638, which is not the same but is related (many people have commented on that issue that they have hit the issue). That issue also needs to be looked at. |
@lukehutch This issue is already triaged and has P2 priority. Please see this for more context on priority labels. |
Any update please? I still face |
Figured out that adding
I guess maybe Also, adding |
Steps to reproduce
Flutter does not set
abiFilters
in its defaultflutter create
template, which means that without intervention, apps published to the Play Store all declare that they will run on x86 (x86_32), which is not (and never will be) supported by Flutter.Users with x86 devices who install the app from Google Play will be met with a crash, which is logged in Crashlytics as
java.lang.UnsatisfiedLinkError: dlopen failed: library "libflutter.so" not found
.This issue is forked from #151638 at the request of @danagbemava-nc, who said:
Expected results
Flutter should opt-in to all of its supported architectures by default using
ndk.abiFilters
.Actual results
Failing to set
abiFilters
means that the app can run on all architectures supported on Google Play, which simply does not reflect reality.Code sample
Code sample
android/app/build.gradle
should include something like this whenflutter create
is called:Screenshots or Video
N/A
Logs
N/A
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: