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 app not compatible with Android 14 #137895
Comments
Hi @zamargab What happens after you click on OK button? Can you still use the app afterward? Can you share this file content: |
It happens only on physical devices. For the version of my app in production, when the user clicks on the ok button, the message disappears but the app often crashes at intervals. for my production app.
for the fresh flutter app i created to try solve this issue. I did not make any changes or add any packages. I only created the app then built an apk
|
We are digging into this but currently do not know why your app is seeing this dialog. The only thing I see in your build file that looks old is the version of java (1.8) but I think that was/is part of the flutter template and have no specific evidence that is the issue. |
Digging into the android source the comments indicate this is used when the apps is in 32bit mode and the device is a 64 bit device. In our documentation flutter supports building android for both 32 and 64 bit android. https://docs.flutter.dev/deployment/android#:~:text=per%2Dabi%20flag.-,What%20are%20the%20supported%20target%20architectures%3F,x86%20Android%20through%20ARM%20emulation. |
@zamargab can you try to build with split abis and see if you use the 64 bit version the dialog goes away? Further digging into the android code shows that the dialog might only appear one time per package. https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/services/core/java/com/android/server/wm/DeprecatedAbiDialog.java;l=44?q=AppWarnings.FLAG_HIDE_DEPRECATED_ABI%20-f:strings.xml |
I built the release Android App bundle and shared it via internal testing. It works fine on other versions but shows black screen for Android 14. @reidbaker |
I performed a split build, and we installed the 64-bit version of the app on an Android 14 device., the dialog did not appear. The issue of sporadically displaying a blank screen still persists. This problem is similar to what @faaqi also mentioned. This is only happening on Android 14 devices. |
OK can one of yall file a different issue for the black screen on android 14 (with reproduction code). I am going to close this since I think we have confirmed the dialog is unrelated to android 14. |
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 |
Is there an existing issue for this?
Steps to reproduce
Expected results
The app should run perfectly with any compatibility warning.
Actual results
A user reported that my app showed a compatibility message on Android 14. (This app isn't compatible with the latest version of Android. Check for an update or contact the app's developer.) I decided to research ways to fix this issue but could not find any useful information.
I even created a fresh flutter project without adding packages or making changes, but the message still appears. I attached a screenshot of the message for reference.
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: