centos 8 使用sdkmanager去更新tools时报错
我用的是最新的commandlinetools-linux-7302050_latest.zip
sudo unzip android-sdk.zip -d .
sudo ./cmdline-tools/bin/sdkmanager "tools"
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.