When I am launching Appium new GUI and running some program, itβs giving me error as below in GUI console-
[MJSONWP] Encountered internal error running command: Error: Could not find adb Please set the ANDROID_HOME environment variable with the Android SDK root directory path.

According to the doctor it looks like it's not set. How do you think you have it set?

[ ] ANDROID_HOME is set
[ ] adb also detected
The above diagnostic could be deceiving / dependant on your terminal. To be sure, open a new terminal and run the appium-doctor. That would uncover any issues.
As many have already said - just ensure your ~/.bash_profile has everything set:

And that should fix it.
thanks for that @webmagit. will close here unless further evidence of a bug arises.
Most helpful comment
[ ] ANDROID_HOME is set
[ ] adb also detected
The above diagnostic could be deceiving / dependant on your terminal. To be sure, open a new terminal and run the appium-doctor. That would uncover any issues.
As many have already said - just ensure your ~/.bash_profile has everything set:
And that should fix it.