Because flutteroc depends on Shared preferences plugin any which doesn't exist (could not find package Shared preferences plugin at https://pub.flutter-io.cn), version solving failed.
出现这个问题本质原因是找不到第三方的库基本可以确认库的名字错了
1.库名中有空格请用"_"替换;
2.库名多了少了前后缀(多了少了s呀,ea不分呀);
3.库名大小写问题;