当前位置:网站首页>Resolving the conflict problem of the flutter Library
Resolving the conflict problem of the flutter Library
2022-06-24 22:04:00 【One leaf floating boat】
from Git PULL Flutter After the project arrives locally , stay Android Studio In the implementation of :
flutter pub get
newspaper : pub get failed (1; So, because XXXX( Project name ) depends on both flutter_cache_manager 1.2.2 and path_provider ^1.6.24, version solving failed.)
Version solution failed :
It can be seen from the figure above :requires SDK version >=2.10.0-0.0 <2.12.0
, And I'm here Dart SDKversion nevertheless 2.14.0( my Flutter yes 2.5.2,2.0 There is no such problem below ), Indicates that the library
With the local Dart Version incompatible , If we don't want to upgrade the local SDK Environmental Science , Then you can follow the steps below to select the correct version :
First step : stay pubspec.yaml This dependency is found in the file ,
dependencies
flutter_cache_manager: 1.2.2
path_provider: ^1.6.24
At this time , We transpose the version any,
dependencies
flutter_cache_manager: any
path_provider: any
The second step : Command execution flutter pub get
The third step : open pubspec.lock
, This file is used to generate all the manifest files we depend on , You can see ,
flutter_cache_manager:
dependency: "direct main"
description:
name: flutter_cache_manager
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.4.2"
path_provider:
dependency: "direct main"
description:
name: path_provider
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.6.9"
The version number changes to 1.4.2
and 1.6.9
, This is the version number actually referenced ,
Fourth parts : take 1.4.2
and 1.6.9
Replace the setting just now any The location of ,( Modify one of them . Can rise flutter_cache_manager
edition Or drop path_provider
edition , This is l flutter_cache_manager
edition )
dependencies
# flutter_cache_manager: 1.2.2
# path_provider: ^1.6.24
flutter_cache_manager: 1.4.2
path_provider: ^1.6.24
This perfectly solves the problem .
边栏推荐
- Collective search + drawing creation
- 拖动拖动拖动
- [camera Foundation (II)] camera driving principle and Development & v4l2 subsystem driving architecture
- leetcode:55. 跳跃游戏【经典贪心】
- [theory] deep learning in the covid-19 epic: a deep model for urban traffic revitalization index
- 是真干不过00后,给我卷的崩溃,想离职了...
- TCP RTT测量妙计
- Want to be a test leader, do you know these 6 skills?
- [notes of Wu Enda] multivariable linear regression
- Practice of hierarchical management based on kubesphere
猜你喜欢
滤波数据分析
Vscode netless environment rapid migration development environment (VIP collection version)
Junior college background, 2 years in Suning, 5 years in Ali. How can I get promoted quickly?
That is to say, "live broadcast" is launched! One stop live broadcast service with full link upgrade
心楼:华为运动健康的七年筑造之旅
Guava中这些Map的骚操作,让我的代码量减少了50%
Graduation design of phase 6 of the construction practice camp
leetcode_ 191_ 2021-10-15
EasyBypass
C language - keyword 1
随机推荐
如何化解35岁危机?华为云数据库首席架构师20年技术经验分享
Application practice | massive data, second level analysis! Flink+doris build a real-time data warehouse scheme
权限想要细化到按钮,怎么做?
并查集+建图
[精选] 多账号统一登录,你如何设计?
[untitled]
Binary search tree template
Suspend component and asynchronous component
St Table + two points
Xinlou: Huawei's seven-year building journey of sports health
Datakit agent realizes unified data aggregation in LAN
性能测试工具wrk安装使用详解
linq查询集合类入门 案例武林高手类
You are using pip version 21.1.2; however, version 22.1.2 is available
[200 opencv routines] 209 Color image segmentation in HSV color space
TKKC round#3
【无标题】
01--- conditions for interference of two trains of waves at the meeting place
印刷行业的ERP软件的领头羊
Réduire le PIP à la version spécifiée (mettre à jour le PIP avec pycharm avant de le réduire à la version originale)