【问题标题】:Attempt to execute code removed by Dart AOT compiler (TFA), how to troubleshoot this issue尝试执行 Dart AOT 编译器 (TFA) 删除的代码,如何解决此问题
【发布时间】:2019-12-27 14:10:19
【问题描述】:

我在 Material Widget 上安装发行版 apk 后看到此错误 - “尝试执行由 Dart AOT 编译器 (TFA) 删除的代码”。我该如何解决这个问题?

我使用charts_flutter: ^0.6.0 在我的flutter 项目中实现了一些图表,然后使用“flutter run”命令测试了该项目。它运行良好。完成我的项目后,我使用命令“flutter build apk --release”生成了一个发布 APK。现在我在安装发行版 apk 后看到此错误 - “尝试执行由 Dart AOT 编译器 (TFA) 删除的代码”。我该如何解决这个问题?

【问题讨论】:

    标签: android flutter apk flutter-dependencies


    【解决方案1】:

    charts_flutter: ^0.5.0 with charts_common: ^0.5.0 and charts_flutter: ^0.7.0 with charts_common: ^0.7.0 工作正常。 0.7.0 已于昨天发布。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-07-14
      • 2017-07-25
      • 1970-01-01
      • 2012-12-19
      • 1970-01-01
      • 2020-09-20
      • 2014-06-11
      相关资源
      最近更新 更多