\xc4\xb1 如何解决这个问题?
\n因为 sdk 中的 flutter_test 的每个版本都依赖于路径 1.8.1,而舰队依赖于路径 ^1.8.2,所以 sdk 中的 flutter_test 是被禁止的。\n因此,由于舰队依赖于 sdk 中的 flutter_test,版本解析失败。\npub 失败 (1 ; 因此,由于舰队依赖于 sdk 中的 flutter_test,版本解析失败。)\n进程已完成,退出代码为 1
\n dependencies:\n flutter:\n sdk: flutter\n\n\n # The following adds the Cupertino Icons font to your application.\n # Use with the CupertinoIcons class for iOS style icons.\n video_player: ^2.4.5\n image_cropper: ^2.0.3\n image_picker: ^0.8.5+3\n shared_preferences: ^2.0.15\n cached_network_image: ^3.2.1\n dio: ^4.0.6\n carousel_slider: ^4.1.1\n async: ^2.9.0\n toast: ^0.3.0\n path: ^1.8.2\n custom_refresh_indicator: ^1.2.1\n flutter_screenutil: ^5.5.3+2\n flutter_slidable: ^1.3.1\n timeago: ^3.2.2\n inview_notifier_list: …Run Code Online (Sandbox Code Playgroud)