Pie*_*rre 4 dependencies flutter
我需要依赖 flutter_launcher_icons: ^0.7.0 的帮助,我希望从 .png 中的图像向我的应用程序插入一个图标
使用旧程序,该命令运行完美。我更改了文件夹,创建了一个新的 Flutter 项目,但没有任何效果。我也做了一个干净的扑扑,没有成功
我执行了 flutter doctor -v ,一切都很好。
对不起,如果格式不完美,这是我在这里问的第一个问题
预先感谢您的帮助
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.7.0/lib/android.dart:207:45: 错误: Getter not found: '平均数'。newFile = copyResize(image, e.size, -1, AVERAGE); ^^^^^^^^
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.7.0/lib/android.dart:207:25:错误:位置参数太多:允许 1 个,但找到 4 个。尝试删除额外的位置参数。newFile = copyResize(image, e.size, -1, AVERAGE); ^
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.0/lib/src/transform/copy_resize.dart:14:7: Context: Found这个候选人,但论据不匹配。Image copyResize(Image src, {int width, int height, ^^^^^^^^^^
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.7.0/lib/android.dart:209:45: 错误: Getter not found: '线性'。newFile = copyResize(image, e.size, -1, LINEAR); ^^^^^^
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.7.0/lib/android.dart:209:25:错误:位置参数太多:允许 1 个,但找到 4 个。尝试删除额外的位置参数。newFile = copyResize(image, e.size, -1, LINEAR); ^
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.0/lib/src/transform/copy_resize.dart:14:7: Context: Found这个候选人,但论据不匹配。Image copyResize(Image src, {int width, int height, ^^^^^^^^^^
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.7.0/lib/android.dart:223:63: 错误: 找不到 Getter: '平均数'。newFile = copyResize(image, template.size, template.size, AVERAGE); ^^^^^^^^
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.7.0/lib/android.dart:223:25:错误:位置参数太多:允许 1 个,但找到 4 个。尝试删除额外的位置参数。newFile = copyResize(image, template.size, template.size, AVERAGE); ^
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/image-2.1.0/lib/src/transform/copy_resize.dart:14:7: Context: Found这个候选人,但论据不匹配。Image copyResize(Image src, {int width, int height, ^^^^^^^^^^
file:///E:/NexToYou/Google/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_launcher_icons-0.7.0/lib/android.dart:226:63: 错误: Getter not found: '线性'。newFile = copyResize(image, template.size, template.size, LINEAR); ^^^^^^
pub 完成退出代码 1在此处输入图像描述
强文本**
小智 5
将这两行添加到您的 pubspec.yaml
dependency_overrides:
image: 2.0.7
Run Code Online (Sandbox Code Playgroud)
似乎 flutter_launcher_icons 与最新版本映像 2.1.0 不兼容。较低版本的图像作品。问题#102
| 归档时间: |
|
| 查看次数: |
3475 次 |
| 最近记录: |