【问题标题】:when I run " flutter build aot --debug " error?当我运行“flutter build aot --debug”错误?
【发布时间】:2019-11-14 03:23:21
【问题描述】:

当我运行“flutter build aot --debug”时出错。 android-arm 不支持 AOT 编译。
在调试模式下构建 AOT 快照 (android-arm)...
快照以非零退出代码退出:1

【问题讨论】:

  • 检查你是否正确安装了flutter。
  • 我的 Flutter 版本:Flutter 1.5.4-hotfix.2 • 通道稳定 • github.com/flutter/flutter.git 框架 • 修订版 7a4c33425d(9 周前) • 2019-04-29 11:05:24 -0700 引擎• 修订版 52c7a1e849 工具 • Dart 2.3.0(构建 2.3.0-dev.0.5 a1668566e5)
  • "flutter build aot --release" 可以正常运行

标签: android ios flutter dart


【解决方案1】:

Dart 构建有两种模式:JIT 和 AOT。

Flutter build 中默认 AOT 用于发布模式

顺便说一句:flutter build aot 已弃用,https://github.com/flutter/flutter/issues/49562

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-11
    • 2021-10-25
    • 2020-02-19
    • 2022-01-08
    • 1970-01-01
    • 2021-09-15
    • 1970-01-01
    • 2023-02-07
    相关资源
    最近更新 更多