Setting up Terminal in Android Studio for Flutter and Bash Profile (For Mac)

Does your Commands in Android Studio not worked?

Fret not, all you need to do is the following from Command Prompt:

1. Do you have a Bash Profile?]
Go into your user folder in finder. The .bash_profile file should be findable there. -> HD/Users/[USERNAME]
To reveal hidden file, press: Command + Shift + .

nano .bashprofile or nano .bash_profile

2. Paste the correct directory
export PATH=~/Users/rigmiklos/Documents/flutter/bin:$PATH
Red Text: Directory contain flutter folder
Hint for Mac User: Double tap on the Flutter.exe in Flutter>Bin>Flutter, and press"Get Info" to get Directory.

3. Ctrl + X to exit (No, this is not for default paste function)

4. Press Y to save changes.

5. To reload
source .bashprofile

Advance Reading for Bash Profile
Official Doc for Setting up

To navigate around Mac Command prompt:
ls: show folders
cd "folder name": to change directory

Solution:
Run Flutter Doctor manually or by Terminal
/Users/marylittle/Documents/flutter121/bin/flutter doctor --android-licenses

Users/marylittle/Documents: Folder containing Flutter SDK
flutter121: Flutter SDK that is downloaded
--android-licenses: Command in Flutter Doctor e.g. --verbose

Comments

Popular posts from this blog

Flutter Widget 101 Part 1 (Basic of Flutters, Layouts, Rows and Columns)

Flutter Widget 101 Part 4 (Navigation and Drawers)