ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

How to Add Flutter SDK to PATH Permanently on Ubuntu Linux

How to add flutter SDK to PATH permanently on ubuntu linux?

bash

ubuntu

flutter

terminal

path

Автор: vlogize

Загружено: 2025-10-02

Просмотров: 5

Описание: Learn how to permanently set up the `Flutter SDK` in your `PATH` on Ubuntu. Follow these simple steps to avoid frustrations and enhance your development experience.
---
This video is based on the question https://stackoverflow.com/q/60145848/ asked by the user 'Mwase' ( https://stackoverflow.com/u/12123833/ ) and on the answer https://stackoverflow.com/a/62767412/ provided by the user 'Aayush24' ( https://stackoverflow.com/u/10082720/ ) at 'Stack Overflow' website. Thanks to these great users and Stackexchange community for their contributions.

Visit these links for original content and any more details, such as alternate solutions, latest updates/developments on topic, comments, revision history etc. For example, the original title of the Question was: How to add flutter SDK to PATH permanently on ubuntu linux?

Also, Content (except music) licensed under CC BY-SA https://meta.stackexchange.com/help/l...
The original Question post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license, and the original Answer post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license.

If anything seems off to you, please feel free to write me at vlogize [AT] gmail [DOT] com.
---
How to Add Flutter SDK to PATH Permanently on Ubuntu Linux

If you're new to Linux, you might find the command line intimidating and confusing at times. After a fresh installation of Ubuntu, you might have encountered an issue when trying to access the Flutter SDK. You might have run into the frustrating message of flutter: command not found. Don't worry! In this guide, we will guide you through the simple steps to permanently add the Flutter SDK to your PATH on Ubuntu Linux.

Understanding the Problem

During the setup of Flutter on your Ubuntu system, you successfully executed the command to add its location to your PATH, but as soon as you closed the terminal, the command wasn't recognized anymore. This is a common issue for many new users who wish to install software on their machines but find that changes disappear after the terminal closes.

Why Does This Happen?

The command you used,

[[See Video to Reveal this Text or Code Snippet]]

only sets the PATH variable temporarily for the duration of that terminal session. Once you close the terminal, all changes made will be lost, and you will have to re-enter the command every time you open a new terminal session. The good news is that there’s a way to make it permanent!

The Solution: Modifying the .bashrc File

To ensure that the flutter command is always recognized, you need to add the necessary export command to your .bashrc file. This file is read and executed whenever a new terminal session is started, allowing you to set up your environment variables permanently.

Steps to Add Flutter SDK to PATH

Here are the detailed steps to achieve this:

Open Terminal: You can do this by searching for "Terminal" in your applications or using the shortcut Ctrl + Alt + T.

Edit the .bashrc File: You can use any text editor to open the .bashrc file. For example, you can use nano:

[[See Video to Reveal this Text or Code Snippet]]

Add the Export Command: Scroll to the bottom of the file and add the following line:

[[See Video to Reveal this Text or Code Snippet]]

Replace [path to the directory you have installed flutter] with your actual Flutter installation path. For example:

[[See Video to Reveal this Text or Code Snippet]]

Save and Exit: If you're using nano, you can save your changes by pressing CTRL + O, then hit Enter, and exit with CTRL + X.

Reload the .bashrc File: For the changes to take effect immediately, run:

[[See Video to Reveal this Text or Code Snippet]]

Test the Configuration: Now type flutter in your terminal, and it should work without any command not found errors!

Conclusion

By following the steps above, you have successfully added the Flutter SDK to your PATH permanently. This means you can confidently open your terminal and run Flutter commands anytime without the hassle of reconfiguring the PATH each time.

Now you're all set to start your Flutter development journey on Ubuntu Linux! Happy coding!

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
How to Add Flutter SDK to PATH Permanently on Ubuntu Linux

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]