尝试执行由 Dart AOT 编译器 (TFA) 删除的代码,如何解决此问题 [英] Attempt to execute code removed by Dart AOT compiler (TFA), how to troubleshoot this issue

查看:35
本文介绍了尝试执行由 Dart AOT 编译器 (TFA) 删除的代码,如何解决此问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装发行版 apk 后看到此错误 - 尝试执行由 Dart AOT 编译器 (TFA) 删除的代码"在材质小部件上.我该如何解决?

I see this error once I install the release apk - "Attempt to execute code removed by Dart AOT compiler (TFA)" on the Material Widget. How do I resolve this?

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

I used charts_flutter: ^0.6.0 to implement some charts in my flutter project then tested the project using the "flutter run" command. It was running fine. After completing my project I generated a Release APK with the command "flutter build apk --release". Now I see this error once I install the release apk - "Attempt to execute code removed by Dart AOT compiler (TFA)". How do I resolve this?

推荐答案

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 已于昨天发布.

charts_flutter: ^0.5.0 with charts_common: ^0.5.0 and charts_flutter: ^0.7.0 with charts_common: ^0.7.0 is working fine. 0.7.0 has been released yesterday.

这篇关于尝试执行由 Dart AOT 编译器 (TFA) 删除的代码,如何解决此问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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