Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for How to install Flutter on a MacBook
Julia 👩🏻‍💻 GDE
Julia 👩🏻‍💻 GDE

Posted on

     

How to install Flutter on a MacBook

I'm going to use Flutter for the first time and dive into the world of mobile development 📱.

(As usual) I had some issues installing Flutter on my MacBook 🙄. So I reset my MacBook, which was long overdue, and set up the technical environment from scratch, using the package manager from the beginning.

And I'm glad I did. Finally the installations are running smooth as butter 🧈.

Environment

DeviceChipOperation SystemCommandLine Tool
MacBook AirApple M1macOS Sonoma 14.1.2HomeBrew

Installation process

After installing Flutter, by running the command

brew install --cask flutter,

everything worked smoothly. I then run

flutter doctor,

which provided instruction on how to move further.

Console output showing instructions on how to install flutter

Here are the commands I ran:

  • sudo softwareupdate --install-rosetta --agree-to-license

  • brew install --cask android-studio

  • sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

  • sudo xcodebuild -runFirstLaunch

  • brew install cocoapods

  • xcodebuild -downloadPlatform iOS

  • path/to/sdkmanager --install "cmdline-tools;latest"

  • flutter doctor --android-licenses

  • flutter config --android-sdk

Now, when runningflutter doctor again, everything is setup.

Successful installation of Flutter.

Tip 💡: In case you have problems withAndroid toolchain - develop for Android devices and the errorcmdline-tools component is missing, check out my article aboutAndroid cmdline tools component is missing - Flutter Installation


Thanks for your reading and time. I really appreciate it.

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
damuz91 profile image
David Muñoz
  • Joined

Instead of:
path/to/sdkmanager --install "cmdline-tools;latest"
I had to go to Android Studio -> Tools -> SDK Manager -> SDK Tools and check Android SDK Command-line Tools
Then after running brew doctor I just missed to accept the terms which its done via
flutter doctor --android-licenses

CollapseExpand
 
ral_cabrera_eb4ef4908d86 profile image
Raúl Cabrera
  • Joined

Thanks, this was really helpful!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

👋 Selftaught Accessibility & Frontend Developer💻 Dev & UX Accessibility Specialist @Atos | CPACC🙆 Improving the world with accessible web content✍️ Content creator, Tips on How To Get Into Tech
  • Location
    Vienna, Austria
  • Education
    selftaught
  • Work
    Frontend & Accessibility Developer
  • Joined

More fromJulia 👩🏻‍💻 GDE

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp