The current Dart SDK version is 2.19.5.
Because pivot_chat requires SDK version >=3.0.0 <4.0.0, version solving failed.
pub get failed
command: "D:\Flutter\flutter\bin\cache\dart-sdk\bin\dart __deprecated_pub --directory . get --example"
pub env: {
"FLUTTER_ROOT": "D:\Flutter\flutter",
"PUB_ENVIRONMENT": "flutter_cli:get",
"PUB_CACHE": "C:\Users\dell\AppData\Local\Pub\Cache",
}
exit code: 1
报错啦怎么办?
找到了我的电脑里面dart SDK的位置,D:\Flutter\flutter\bin\cache\dart-sdk
我认为是dart的版本不够的时候,我就去下载新的dart SDK(下载地址:Archive | Dart
),然后去替换我之前的dart-sdk,然后就出现问题了,官方的flutter sdk中已经自带了匹配版本的dart sdk。所以不要自己手动去替换。不要自己手动去替换。不要自己手动去替换。
所以后来我就去想着下载一个新的flutter sdk(下载地址:Flutter SDK 版本列表 - Flutter 中文文档 - Flutter 中文开发者网站 - Flutter),我就把我下载的flutter sdk给替换之前的,然后,然后就点击 Pub get,就出现了
--no-color pub get Waiting for another flutter command to release the startup lock...
这个怎么解决呢?
********* 进入flutter sdk 目录,然后找到bin/cache/lockfile文件,删除后,即可解决
然后再运行,又出现问题了(见下图)
Building with plugins requires symlink support.
Please enable Developer Mode in your system settings. Run
start ms-settings:developers
to open settings.
后来查阅资料发现,如果是window11系统的话就要打开电脑的开发者选项(Click on Privacy & Security and after, click on for developers option.)
打开开发者 模式就行啦文章来源:https://www.toymoban.com/news/detail-624316.html
文章来源地址https://www.toymoban.com/news/detail-624316.html
到了这里,关于Flutter 版本更新 和 dart SDK版本跟新的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!