【错误记录】Flutter 报错 ( Because xx depends on flutter_driver any from sdk which depends on args 1.6.0 )

简介: 【错误记录】Flutter 报错 ( Because xx depends on flutter_driver any from sdk which depends on args 1.6.0 )

文章目录

一、报错信息

二、问题分析

三、解决方案





一、报错信息


参考 【Flutter】Flutter Gallery 官方示例简介 博客 ;


Flutter Galley 开源项目运行时 , 在 pubspec.yaml 页面 , 点击右上角的 Pub get 按钮 , 报以下错误 ;


项目地址 : https://github.com/flutter/gallery


Y:\001_DevelopTools\010_Flutter\flutter_windows_2.0.2-stable\flutter\bin\flutter.bat --no-color pub get

Running "flutter pub get" in gallery-master...                  


Because gallery depends on flutter_driver any from sdk which depends on args 1.6.0, args 1.6.0 is required.
So, because gallery depends on args ^2.0.0, version solving failed.
pub get failed (1; So, because gallery depends on args ^2.0.0, version solving failed.)
Process finished with exit code 1


image.pngimage.png


image.png





二、问题分析


Because gallery depends on flutter_driver any from sdk which depends on args 1.6.0, args 1.6.0 is required.


该项目需要依赖 args 插件的 1.6.0 版本 , 在 pubspec.yaml 中配置的版本号是 2.0.0 , 配置的版本号高了 ;


image.png






三、解决方案


将 args 插件的版本号设置成 1.6.0 ;


args: ^1.6.0


" Pub get " 操作成功 , 报了个警告 , 暂时不处理 ;


image.png

目录
相关文章
|
4月前
|
缓存 Dart 开发工具
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
68 3
|
1月前
|
IDE 开发工具
鸿蒙Flutter实战:11-使用 Flutter SDK 3.22.0
本文介绍了如何使用 Flutter SDK 3.22.0 搭建鸿蒙开发环境。首先安装 Flutter SDK 3.22.0,并通过 FVM 管理多个版本。接着配置项目,使用 `fvm use custom_3.22.0` 设置自定义 SDK 版本。添加鸿蒙平台支持并进行项目签名,最后通过 `fvm flutter run` 运行项目。详细步骤包括安装、项目配置、签名和运行,确保开发环境顺利搭建。
140 7
鸿蒙Flutter实战:11-使用 Flutter SDK 3.22.0
|
1月前
|
存储 测试技术 Shell
Flutter UT太多导致跑覆盖率报错
Flutter UT太多导致跑覆盖率报错
29 2
|
2月前
|
JavaScript 前端开发 开发工具
【Azure Developer】使用JavaScript通过SDK进行monitor-query的client认证报错问题
AADSTS90002: Tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Check with your subscription administrator, this may happen if there are no active subscriptions for the tenant.
|
4月前
Flutter更改主题颜色报错:type ‘Color‘ is not a subtype of type ‘MaterialColor‘
Flutter更改主题颜色报错:type ‘Color‘ is not a subtype of type ‘MaterialColor‘
55 4
|
4月前
|
Dart 开发工具 Android开发
Android Studio导入Flutter项目提示Dart SDK is not configured
Android Studio导入Flutter项目提示Dart SDK is not configured
415 4
|
4月前
解决Flutter报错The named parameter |method ‘xxxx‘ isn‘t defined.
解决Flutter报错The named parameter |method ‘xxxx‘ isn‘t defined.
172 3
|
4月前
|
开发工具 图形学 Android开发
Unity与安卓丨unity报错:SDK Tools version 0.0 < 26.1.1
Unity与安卓丨unity报错:SDK Tools version 0.0 < 26.1.1
|
4月前
|
开发工具 iOS开发
解决Flutter运行报错Could not run build/ios/iphoneos/Runner.app
解决Flutter运行报错Could not run build/ios/iphoneos/Runner.app
191 2
|
4月前
|
开发工具 Android开发
Flutter: Android SDK not found at this location,Android Studio not found at xxx
Flutter: Android SDK not found at this location,Android Studio not found at xxx
170 2