Skip to content
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

Flutter example failes google pre launch test: INSTALL_FAILED_NO_MATCHING_ABIS #109641

Closed
WasaLordy opened this issue Aug 16, 2022 · 20 comments
Closed

Comments

@WasaLordy
Copy link

Hi,

Every time I do a closed test on google play console I get the following error:
"Couldn't be installed"
Failed to finalize session : INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113

The failing device is always:
Google Pixel 2 (virtuell) 1080x1920 Android 9 (SDK 28) - x86 en_US

Excluding the device from the device catalog doesn't help.
After several tries where i tested different changes in build.grade I tried a new flutter project and this failed too.

Steps to Reproduce

  • Open Android Studio
  • Create a new flutter project
  • follow this instructions to sign the app: https://docs.flutter.dev/deployment/android
  • build an app bundle: flutter build appbundle
  • upload app-release.aab to a closed test in google play console -> new release track

Additions

I read multiple websites but so far nothing helped and I'm confused that the template project doesn't work eighter.
#31579
https://stackoverflow.com/questions/36414219/install-failed-no-matching-abis-failed-to-extract-native-libraries-res-113
https://www.anycodings.com/questions/installfailednomatchingabis-failed-to-extract-native-libraries-res-113

I use the current flutter SDK: 3.0.5
and the current Android Studio Chipmunk | 2021.2.1 Patch 2

temp

@under3415
Copy link

Getting exactly the same issue on Google Play Console with Flutter SDK 3.3.0-0.3.pre

@muhlba91
Copy link

Having the same issue after updating to 3.0.5.
I did not find that error with 3.0.4 built bundles.

@leoshak
Copy link

leoshak commented Aug 17, 2022

It worked for the first app but did not work for the second app which is a clone for another client.

image

Here is the flutter doctor result:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.4 21F79 darwin-arm, locale en-LK)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[!] Android Studio
    ✗ Unable to find bundled Java version.
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Community Edition (version 2022.1)
[✓] VS Code (version 1.70.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

! Doctor found issues in 1 category.

@leoshak
Copy link

leoshak commented Aug 17, 2022

Getting exactly the same issue on Google Play Console with Flutter SDK 3.3.0-0.3.pre

Have you found any solutions? the app works for the devices I tried

@leoshak
Copy link

leoshak commented Aug 17, 2022

I found a SO question also for this from yesterday which is unanswered

https://stackoverflow.com/questions/73368337/how-to-avoid-google-play-console-issues-related-to-x86-architecture

@stuartmorgan
Copy link
Contributor

Flutter does not support x86, so that simulator isn't a valid test device for a Flutter application.

Having the same issue after updating to 3.0.5.
I did not find that error with 3.0.4 built bundles.

Have you re-tested with 3.0.4? This is almost certainly a change on Google Play itself, unrelated to your Flutter update. There were recently other issues with that device test where it was attempting to instead run via a translation system and crashing for Flutter-built apps.

@WasaLordy
Copy link
Author

WasaLordy commented Aug 17, 2022

Thanks for your replies.
I know that x86 is not supportet by flutter. I read somewhere that those devices can emulate this arcitecture (or so)...
I don't have problems with my own virtual devices which run x86.
devices
I will try flutter 3.0.4 later and maybe also this helps:
https://github.com/flutter/flutter/wiki/JIT-Release-Modes

@muhlba91
Copy link

I added the following abiFilters to build.gradle but the Play Console still tries to install it on x86, which obviously fails.
Am I wrong to assume they should honour those filters when testing?

android {
  defaultConfig {
    ndk {
      abiFilters 'arm64-v8a', 'armeabi-v7a', 'x86_64'
    }
  }
}

@WasaLordy
Copy link
Author

WasaLordy commented Aug 17, 2022

Today I tried again to solve the problem.
@muhlba91 yes, all attems to use abiFilters fail and also using flutter sdk 3.0.4 doesn't solve the problem.
With the device catalog in google play console I also wasn't able to exclude the specific device (Pixel 2 x86) from the test set.
@stuartmorgan now I also believe that a change from google play console is the reason for the problem.

The google play console even shows that the correct architectures are available... :/
console

Here is a solution (but I hope that the solution is only necessary for a short time):
Change the min sdk version to 29
flutter-directory/packages/flutter_tools/gradle/flutter.gradle --> minSdkVersion = 29
This excludes the problematic device and thousands other android devices :(
(from 20.730 to only 5.827 devices)

@stuartmorgan
Copy link
Contributor

Closing, as this is (as with the previous similar problem in #37396) an issue with Google Play rather than Flutter. It will need to be addressed on the Play side.

@stuartmorgan stuartmorgan closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2022
@stuartmorgan
Copy link
Contributor

Here is a solution (but I hope that the solution is only necessary for a short time):
Change the min sdk version to 29

Comments in #37396 indicated that the error does not prevent publishing, so unless that has changed you should be able to simply ignore the error rather than prevent your app from reaching older devices.

@under3415
Copy link

under3415 commented Aug 17, 2022

Closing, as this is (as with the previous similar problem in #37396) an issue with Google Play rather than Flutter. It will need to be addressed on the Play side.

Both Flutter and Play Store are Google products, would it not be better for an internal Google conversation instead of users trying to get this resolved through support channel that is designed like a firewall?

We are getting heaps of issues reported by Google Play app testing. Play store needs to learn to play nice with Flutter if Flutter is going to be successful. It is in Google's best interest to sort this out...

@stuartmorgan
Copy link
Contributor

would it not be better for an internal Google conversation

That's already happening. An internal Google conversation isn't something that will happen in Flutter's public issue tracker, nor would Google Play changes be managed from here, so there's nothing to track with a Flutter issue.

@stuartmorgan
Copy link
Contributor

Would someone who has seen this be willing to provide a package name and uploaded version that hit this error, to provide a specific case for investigation?

@under3415
Copy link

Would someone who has seen this be willing to provide a package name and uploaded version that hit this error, to provide a specific case for investigation?

I can do this. Where can I send it? Do you just need a Play Store reference or the actual package?
D

@ponnumittathani
Copy link

Similar issue is reported in the pre launch report, for Xamarin applications as well.

@stuartmorgan
Copy link
Contributor

The cause has been identified; thanks to everyone who provided details!

@under3415
Copy link

The cause has been identified; thanks to everyone who provided details!

Thanks, I can confirm the error has disappeared in the latest release.

While I have you there, what would be the way to escalate this Flutter accessibility issue? I don't think it is anything I did wrong, again this is between Flutter and the Play Store.
https://stackoverflow.com/questions/73313667/how-to-fix-google-play-console-warnings-about-missing-content-labels

I am also getting a bunch of "Non-SDK API usage" violations in Firebase Test Lab, which could be another similar case: https://stackoverflow.com/questions/73369465/flutter-non-sdk-api-usage-violation

@stuartmorgan
Copy link
Contributor

Please file new issues for things unrelated to the error that was reported here.

@github-actions
Copy link

github-actions bot commented Sep 1, 2022

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 flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants