mohumohu studio みずきの技術&読書ブログ&無料ゲーム

mohumohu studio

           

みずきの技術&読書ブログ&無料ゲーム

プロフィール画像

How to Set Up the Flutter Environment!! (Windows Edition)

Today, we will walk through setting up the Flutter environment on Windows!


Table of Contents

  1. Downloading the Flutter SDK
  2. Setting the PATH
  3. Setting Up Android Studio
  4. Configuring Android Licenses
  5. Running flutter doctor
  6. Summary

Downloading the Flutter SDK

Visit the official Flutter website.

Select Android as your platform.

Download the Flutter SDK (ZIP file).

Extract the downloaded ZIP file.

Create a folder named dev in Local Disk (C:).

Move the extracted flutter SDK into the dev folder.


Setting the PATH

To access the flutter command from anywhere, add it to the system PATH.

In Windows Search, type env and open Edit the system environment variables.

Click the Advanced tab and select Environment Variables.

Under System Variables, find Path, select it, and click Edit.

Click New and enter the path to the bin folder inside the Flutter directory.

Example: C:\dev\flutter\bin

Click OK to save.

💡 How to copy the correct path?

Open the bin folder inside the Flutter directory.

Right-click the address bar at the top and select Copy address as text.

Paste it when adding the new PATH entry.


Setting Up Android Studio

Download Android Studio from the official website.

Agree to the Terms and Conditions and click Download.

Run the downloaded file and follow the installation steps.

If unsure, click Yes or Next to proceed with default settings.

Once installed, open Android Studio.

Install the Flutter plugin:

Go to PreferencesPlugins.

Search for Flutter and click Install.

Click Restart IDE after installation.

Install Android SDK Command-line Tools:

Open Android StudioSDK Manager.

Go to Android SDKSDK Tools tab.

Check Android SDK Command-line Tools (latest) → Click Apply.

Click OK to install.


Configuring Android Licenses

To accept Android SDK licenses:

Open Command Prompt (cmd).

Run the following command:

When prompted, type y and press Enter to accept the licenses.

You may need to do this 5 times to accept all agreements.

Once you return to the normal terminal, the setup is complete. ✅


Running flutter doctor

After setting up Android Studio, run:

This command checks your Flutter environment and lists any missing dependencies.

💡 For detailed error messages, use:

If all items show green checkmarks (✔), you’re good to go! 🎉


Summary

Today, we covered how to set up Flutter on Windows!

If you encounter any errors, take a deep breath and search for solutions using the error message.

🚀 Happy Flutter Development! 🚀

2025-03-08

0件のコメント

コメントはまだありません。最初の一人になりましょう!

Leave a Reply

Your email address will not be published. Required fields are marked *