To solve JAVA_HOME is not set and no ‘java’ command could be found in your flutter PATH If you have installed Android Studio from the website and not using snap, run flutter config –android-studio-dir=/usr/local/android-studio . Just open your terminal.16 Haz 2021