Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 颤振镖版本未升级到2.9.0_Flutter_Dart - Fatal编程技术网

Flutter 颤振镖版本未升级到2.9.0

Flutter 颤振镖版本未升级到2.9.0,flutter,dart,Flutter,Dart,我在Windows PC上创建了一个颤振项目,当我运行颤振医生命令时,它说我的dart版本是2.9.0 我试图在macOS上运行这个项目,在iPhone上测试这个项目。但是,我无法运行flutter pub get。在mac上我的Flitter doctor上,它说dart版本是2.1.0,尽管我安装了dart版本2.9.2并切换到了它 但是关于颤振的版本没有改变。我运行了颤振升级和颤振升级——力和它仍然是一样的 有什么想法吗 Flutter is already up to date on c

我在Windows PC上创建了一个颤振项目,当我运行颤振医生命令时,它说我的dart版本是2.9.0

我试图在macOS上运行这个项目,在iPhone上测试这个项目。但是,我无法运行flutter pub get。在mac上我的Flitter doctor上,它说dart版本是2.1.0,尽管我安装了dart版本2.9.2并切换到了它

但是关于颤振的版本没有改变。我运行了颤振升级和颤振升级——力和它仍然是一样的

有什么想法吗

Flutter is already up to date on channel master
Flutter 1.22.0-10.0.pre.82 • channel master •
https://github.com/flutter/flutter.git
Framework • revision 9248fda410 (11 hours ago) • 2020-09-03 16:08:01 -0700
Engine • revision 3f05b521b9
Tools • Dart 2.10.0 (build 2.10.0-86.0.dev)
当我运行flatter pub get时,我得到以下错误:

The current Dart SDK version is 2.5.0.                                  
                                                                        
Because flutter_auth depends on webview_flutter >=0.3.20+1 which requires SDK version >=2.7.0 <3.0.0, version solving failed.

将频道改为稳定频道而不是主频道并升级颤振:
flatter channel stable&&flatter upgrade
@Owczar我更新了尝试切换频道时遇到的问题。最好的解决方案是从硬盘上删除颤振和飞镖。您可以通过以下命令检查颤振和省道的路径:
哪个颤振省道
。删除所有内容后,再次安装最新的颤振(其中包含最新的省道):
git: error: Your local changes to the following files would be overwritten by checkout:
git:    dev/benchmarks/complex_layout/pubspec.yaml
git:    dev/benchmarks/macrobenchmarks/pubspec.yaml
git:    dev/benchmarks/microbenchmarks/pubspec.yaml
git:    dev/benchmarks/platform_views_layout/pubspec.yaml
git:    dev/benchmarks/platform_views_layout_hybrid_composition/pubspec.yaml
git:    dev/benchmarks/test_apps/stocks/pubspec.yaml
git:    dev/bots/pubspec.yaml
git:    dev/devicelab/pubspec.yaml
git:    dev/integration_tests/android_embedding_v2_smoke_test/pubspec.yaml
git:    dev/integration_tests/android_semantics_testing/pubspec.yaml
git:    dev/integration_tests/android_splash_screens/splash_screen_kitchen_sink/pubspec.yaml
git:    dev/integration_tests/android_splash_screens/splash_screen_trans_rotate/pubspec.yaml
git:    dev/integration_tests/android_views/pubspec.yaml
git:    dev/integration_tests/channels/pubspec.yaml
git:    dev/integration_tests/external_ui/pubspec.yaml
git:    dev/integration_tests/flavors/pubspec.yaml
git:    dev/integration_tests/flutter_driver_screenshot_test/pubspec.yaml
git:    dev/integration_tests/flutter_gallery/pubspec.yaml
git:    dev/integration_tests/hybrid_android_views/pubspec.yaml
git:    dev/integration_tests/image_loading/pubspec.yaml
git:    dev/integration_tests/ios_platform_view_tests/pubspec.yaml
git:    dev/integration_tests/platform_interaction/pubspec.yaml
git:    dev/integration_tests/release_smoke_test/pubspec.yaml
git:    dev/integration_tests/ui/pubspec.yaml
git:    dev/manual_tests/pubspec.yaml
git:    dev/tools/pubspec.yaml
git:    examples/catalog/pubspec.yaml
git:    examples/hello_world/pubspec.yaml
git:    examples/platform_channel/pubspec.yaml
git:    examples/platform_channel_swift/pubspec.yaml
git:    packages/flutter/pubspec.yaml
git:    packages/flutter_driver/pubspec.yaml
git:    packages/flutter_goldens/pubspec.yaml
git:    packages/flutter_localizations/pubspec.yaml
git:    packages/flutter_tools/pubspec.yaml
git:    packages/fuchsia_remote_debug_protocol/pubspec.yaml
git: Please commit your changes or stash them before you switch branches.
git: Aborting
Switching channels failed with error code 1.