前往
大廳
主題

The warnings in flutter doctor

下午梅克 | 2020-10-27 23:21:19 | 巴幣 110 | 人氣 255

今天嘗試建置 flutter 環境
但使用 flutter doctor 檢測時卻頻頻出現錯誤

首先是 Android sdkmanager tool not found
sdkmanager ... 直覺這應該是挺重要的東西吧? 居然沒有
或許是我在 android studio 安裝過程中 next 太快
沒看到一些選項
沒關係 重新安裝就好

第二輪
還是一模一樣的結果啊
這到底是什麼東西 這麼神奇
來看一下官方解釋

sdkmanager

The sdkmanager is a command line tool that allows you to view, install, update, and uninstall packages for the Android SDK. If you're using Android Studio, then you do not need to use this tool and you can instead manage your SDK packages from the IDE.

If you're using Android Studio, then you do not need ...
do not need
not need
那就別給我報錯啊

最後在這篇找到了解法
其中有一個令人感興趣的字 -- Obsolete [ˋɑbsə͵lit]  廢棄的,淘汰的;過時的,老式的
errrrrrr ... 算了 成功解決就好了

再來第二個 Flutter / Dart plugin not installed

[!] Android Studio (version 4.1)    
✗ Flutter plugin not installed; this adds Flutter specific functionality.    
✗ Dart plugin not installed; this adds Dart specific functionality.

已經確認這兩個插件成功安裝 也已設為 enable
嗯? 鬼故事?

再去找解答發現這是3年前就已經有的問題 解法也有許多種
然而 這些對我的情況一點幫助都沒有
心灰意冷之際 去油管找找看有沒有相同的問題
毫不意外 找到了一個看似仙丹 實為草包的教學影片
有教跟沒教一樣

本來打算放棄 略過這個 warning
直接打 code 試試看能不能 work
不過習慣性的往下看留言
驚覺大神就在燈火闌珊處

照做後 flutter doctor 的 warning 順利消失了
在這裡也得到了一個結論
android studio 4.1 還不支援 flutter
沒想到會先在 youtube 找到答案而不是 github

最後去查查改變 flutter channel 後的影響
就可以開始玩 flutter 了
一波三折的打 code 之路 ... 先去睡覺好了

創作回應

大村卷
感謝大大的文章!! 解決了我裝flutter時遇到的問題
2020-10-29 22:25:20
下午梅克
沒想到這麼快就幫到人了 開心,一起加油囉
2020-10-29 22:36:02

更多創作