The problem seems to be partially fixed with archive:3.1.8.
All there is left to do is to use that version to make the error go away, thus, you can manually use the latest version by going to "FLUTTER_HOME/packages/flutter_tools/pubspec.yaml" and change (line 10) to "archive 3.1.8"
Then just execute "flutter update-packages --force-upgrade" as instructed in that pubspec.yaml
cheers,
找到flutter安装目录 packages/flutter_tools/pubspec.yaml
大约在第10行
修改
archive: 3.1.8 // 修改为这个版本
再执行
flutter update-packages --force-upgrade
问题解决