Flutter App是否与几乎所有内容都不兼容? [英] Flutter App is Incompatible With Nearly Everything?

查看:119
本文介绍了Flutter App是否与几乎所有内容都不兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我构建了一个Flutter应用程序,该应用程序可以在手机上完美运行,但是我没有尝试过其他应用程序.这是Git仓库.

I have built a Flutter app that works perfectly on my phone, but none of the others I have tried it on. Here's the Git repo.

我的问题是,当我尝试从生成的APK安装时,我尝试安装的所有设备都说该应用程序不兼容".我已经在以下设备上尝试过该应用程序:

My problem is that when I try to install from the APK I build, all the devices I'm trying to install it on say that the app is "incompatible." I have tried the app on the following devices:

  • 三星Galaxy J3
  • 华为P10
  • 三星Galaxy Core Prime
  • LG某物或某物

它可以在我的Samsung Galaxy S8和Samsung Galaxy S7上使用.我们非常着急,我们将竭诚为您提供所有帮助.

It works on my Samsung Galaxy S8, and the Samsung Galaxy S7. Any and all help is greatly appreciated, as we are in a hurry.

推荐答案

Flutter不关心设备的型号.检查项目的最低sdk版本是否高于您尝试安装该应用程序的设备的Android版本.这可能是问题的原因.

Flutter does not care about the model of device. Check if your project's minimum sdk version is higher than the Android version of the device that you try to install the app. It might be the cause of the problem.

在您的Flutter项目下,转到"android/app"文件夹.请参阅 build.gradle 文件中的 minSdkVersion 字段.将其与设备中现有的Android版本进行比较.

Under your Flutter project, go to "android/app" folder. See the minSdkVersion field inside build.gradle file. Compare it with the Android version existing in your device.

这篇关于Flutter App是否与几乎所有内容都不兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆