You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter生成的APK突然无法安装,寻求技术排查帮助

APK安装失败问题求助

我有一款已发布的应用,已有部分用户使用,过去半年左右一切正常,上次版本发布是在2个月前。上周我仅修改了颜色、文本等基础设计细节,但构建APK后,在智能手机上安装时出现“解析包时出现问题”,模拟器上显示“设备不兼容”,此前版本的APK可正常安装,部分用户设备测试也出现相同错误。

我还准备了一个存在相同问题的示例应用。

flutter doctor -v
[√] Flutter (Channel stable, 3.13.9, on Microsoft Windows [versÆo 10.0.19045.3570], locale pt-BR)
    • Flutter version 3.13.9 on channel stable at C:\Flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d211f42860 (3 weeks ago), 2023-10-25 13:42:25 -0700
    • Engine revision 0545f8705d
    • Dart version 3.1.5
    • DevTools version 2.25.0

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\Usuario\AppData\Local\Android\sdk
    • Platform android-34-ext8, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.3)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] VS Code (version 1.84.2)
    • VS Code at C:\Users\Usuario\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.76.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [versÆo 10.0.19045.3570]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 119.0.6045.124
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 119.0.2151.44

[√] Network resources
    • All expected network resources are available.

补充信息

  • 首次安装失败后,我更新了所有依赖、Flutter SDK和Kotlin Gradle,但问题仍未解决。
  • flutter run --release命令可正常运行。
  • 清理数据、卸载旧版本、为所有用户卸载,甚至在从未安装过该应用的设备上安装均无效。
  • 我通常使用--split-per-abi参数构建并安装armabi-v7a-release版本,但测试发现仅arm64-v8a-release版本和通用APK可在模拟器上安装,真机上所有版本均无法安装。
  • 现在我的设备甚至无法安装过去几个月一直正常运行的旧版本应用。
  • 用于测试依赖和兼容性的Flutter示例应用,其APK也存在相同问题;
  • 起初以为是设备特定问题,但所有测试设备均出现该问题。
  • APK构建过程无任何错误或警告。

内容的提问来源于stack exchange,提问作者Rayan Wu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.06 11:37:03