我最近将flutter升级到了最新版本,此后,我无法再将任何软件包添加到pubspec.yaml文件中。有人可以帮我解决这个问题吗?
运行flutter pub get命令后,我得到以下输出:
Oops; flutter has exited unexpectedly: "Invalid argument(s): Cannot find executable for
C:\Users\manup\Desktop\Flutter\flutter\bin\cache\dart-sdk\bin\pub.bat.".
A crash report has been written to C:\Users\manup\Desktop\Projects\newapp\flutter_06.log.
文件“ C:\ Users \ manup \ Desktop \ Flutter \ flutter \ bin \ cache \ dart-sdk \ bin \ pub.bat”。我的电脑中不存在。
Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.22.3, on Microsoft Windows [Version 10.0.19041.572], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.50.1)
[!] Connected device
! No devices available
! Doctor found issues in 1 category.