I'm trying to install flutter on ubuntu 18.04. After downloading the flutter package from link, I set the PATH variables, after that whenever I try to execute flutter on terminal it was giving an error command not found.

Even I try to execute flutter command inside flutter/bin the result remains the same!

I tried to restart and check then also result remains the same.

This is how my .bash_profile looks like

[email protected]:~/Downloads/flutter/bin$ cat ~/.bash_profile 
export JAVA_HOME=/usr/lib/jvm/default-java

export ANDROID_HOME=/opt/Android
export PATH=$PATH:$ANDROID_HOME/tools 
export PATH=$PATH:$ANDROID_HOME/platform-tools

export PATH=/Downloads/flutter/bin:$PATH

Error log:

[email protected]:~/Downloads/flutter/bin$ flutter doctor
flutter: command not found
[email protected]:~/Downloads/flutter/bin$ flutter
flutter: command not found
[email protected]:~/Downloads/flutter/bin$ 

Any kind of help will much much appreciated!!!

0 Answers