進(jìn)入到你的flutter sdk目錄中,然后找到bin/cache/lockfile文件,刪除它即可。 刪除之后你再運(yùn)行flutter doctor,你會(huì)發(fā)現(xiàn)錯(cuò)誤已經(jīng)解決了。