2023-07-05 fair运行报错$$w.dart:1417

2023-07-04  本文已影响0人  我是小胡胡分胡

报错内容如下:

AndroidStudio 运行错误:

Warning: You are using these overridden dependencies:
! collection 1.17.2
! fair_version 3.3.0 from git https://github.com/wuba/fair.git at 1c9b2b in flutter_version/flutter_3_3_0
Launching lib/main.dart on iPhone 14 Pro in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 30.9s
Failed to build iOS app
Error (Xcode): ../../.pub-cache/git/fair-1c9b2bdeca5f82489fe6a0a6854f53b6ba68c27e/flutter_version/flutter_3_3_0/lib/src/widgets/$$w.dart:1417:48: Error: Undefined name 'DragAnchor'.

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.

使用xcode运行,看看xcode这边的错误:

image.png

原来是 flutter版本选错了

这说明Android Studio报错的内容没有xcode详细

好了,flutter版本修改为3.3.7版本后成功运行。

image.png
上一篇下一篇

猜你喜欢

热点阅读