You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The name 'find'is defined in the libraries 'package:flutter_driver/src/driver/driver.dart' and 'package:flutter_test/src/finders.dart'.
Try using 'as prefix'for one of the import directives, or hiding the name from all but one of the imports.dart(ambiguous_import)
Because every version of flutter_driver from sdk depends on test_api 0.2.4 and test >=1.6.2 depends on test_api 0.2.5, flutter_driver from sdk is incompatible with test >=1.6.2.
So, because flutter.toBeMaster.step01 depends on both test ^1.6.3 and flutter_driver any from sdk, version solving failed.
pub get failed (1)
Because every version of flutter_driver from sdk depends on test_api 0.2.4 and test >=1.6.2 depends on test_api 0.2.5, flutter_driver from sdk is incompatible with test >=1.6.2.
So, because flutter.toBeMaster.step01 depends on both test ^1.6.2 and flutter_driver any from sdk, version solving failed.
pub get failed (1)
分支:test
貌似test.dart已经移除了,用test_api.dart替代了,但是使用test_api.dart包无法完成集成测试,报错如下:
代码
然后脑子一抽打算用浅薄的理解曲线救国,导入包flutter_test.dart
然后代码报错如下提示:
继续如下暴力执法,解决代码报错
以为大功告成,结果终端报错如下:
google查了一下,一脸懵逼,没能解决,先把坑记住,大丈夫能屈能伸,在pubspec.yaml改动如下:
test 只能用小于1.6.1,大于1.6.1版本的提示如下:
我底子烂,暂时先妥协,然后终于可以导入包:
终于顺利完成了教学视频中集成测试的结果。
阿西吧。。。。。
当前flutter版本:
The text was updated successfully, but these errors were encountered: