I am using is the latest commandlinetools - Linux - 7302050 _latest. Zip
Sudo unzip android - SDK. Zip - d.
Sudo./cmdline - the tools/bin/sdkmanager "tools"
ERROR: JAVA_HOME is not set and no 'Java' command could be found in your PATH.
Both Please set the JAVA_HOME variable in your environment to match the
The location of your Java installation.