1. 找到Flutter的安装目录,并且进入bin/cache目录.

  2. 删除 lockfile 和 flutter.bat.lock 

  3. 终端重新执行 flutter doctor.