gpt4 book ai didi

android-studio - 方法 'CachedNetworkImageProvider.load' 的位置参数少于覆盖方法 'ImageProvider.load' 的位置参数

转载 作者:行者123 更新时间:2023-12-05 00:44:45 27 4
gpt4 key购买 nike

enter image description here

请帮我解决 flutter 中的这个错误,我无法理解错误是什么以及如何解决它。请简单地告诉我解决方案意味着在哪里添加代码行和更改哪个文件,提前谢谢

最佳答案

Flutter 1.12.13+hotfix.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 27321ebbad (12 days ago) • 2019-12-10 18:15:01 -0800
Engine • revision 2994f7e1e6
Tools • Dart 2.7.0


我今天将 Flutter 更新到最新版本,并收到此错误并阅读了 repo readme并采取行动。感谢包所有者 Rene Floor 现在一切正常

只需在 pubspec.yaml 中增加包按照楼主的建议:

cached_network_image: ^2.0.0-rc

由包所有者:

Breaking change with ImageProvider.load in Flutter 1.10

The Flutter team made a breaking change with the ImageProvider in Flutter 1.10.15 (currently Master channel only).

If you are experiencing one of the following errors upgrade to 2.0.0-rc.

The method 'ScaledFileImage.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'

The method 'CachedNetworkImageProvider.load' has fewer positional arguments than those of overridden method

关于android-studio - 方法 'CachedNetworkImageProvider.load' 的位置参数少于覆盖方法 'ImageProvider.load' 的位置参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59337903/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com