Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter : No valid Android SDK platforms found in /usr/lib/android-sdk/platforms. Directory was empty

I have already installed the latest Android Studio and Android SDK on my computer. But I still have this trouble, anyone can help me to fix this? Thanks enter image description here

like image 358
Dwi Arya Rahmawan Avatar asked Apr 27 '26 00:04

Dwi Arya Rahmawan


1 Answers

In Android Studio go to menu > Tools > SDK Manager
and ensure you have at least one platform selected, like Android 9.0 (Pie)

enter image description here

Click "OK" to start installation. You can open SDK manager again and check it shows "Installed" on the right.

When it is done, check flutter doctor -v again.

like image 179
Günter Zöchbauer Avatar answered Apr 28 '26 15:04

Günter Zöchbauer