dart - 没有为“NumberFormat”类定义方法“toStringDeep”
问题描述
我的应用程序运行良好,突然它开始向我显示编译器错误。这是错误:
Compiler message:
org-dartlang-debug:synthetic_debug_expression:1:1: Error: Method not found: 'toStringDeep'.
toStringDeep()
^^^^^^^^^^^^
org-dartlang-debug:synthetic_debug_expression:1:1: Error: The method 'toStringDeep' isn't defined for the class 'NumberFormat'.
- 'NumberFormat' is from 'package:intl/intl.dart' ('file:///Users/chandra/flutter/.pub-cache/hosted/pub.dartlang.org/intl-0.15.7/lib/intl.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toStringDeep'.
toStringDeep()
解决方案
这是一个已知的错误 36091和30381,应该在下一个版本中修复。唯一的解决方法是运行flutter clean
. (使用 Android Studios Tools -> Flutter -> Flutter Clean 也应该可以工作)。
推荐阅读
- angular - NGRX:如何从内部使用不同的有效负载多次调用相同的服务
- python - Google Slide API-我如何多次复制幻灯片并每次创建唯一的对象 ID
- reactjs - 为什么在传递给 onClick 的箭头函数中的函数调用不起作用?
- python - 使用 lambda 按姓氏对作者姓名进行排序
- html - Excel VBA宏在网站上上传文件
- java - 数据集过滤器以意想不到的方式工作
- php - 使用 Sentinel 时不支持 Redis HMGET
- mysql - 如何在 Docker 上使用与 MySQL 的加密连接
- sql - 获取 SQL Server 中每个插入的 id
- android - 有没有办法通过点击网页中的按钮来触发后退按钮?