sudo pacman -Ss jdk
sudo pacman -S jdk-openjdk
wget https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip
mkdir -p Android/cmdline-tools
unzip commandlinetools-linux-7302050_latest.zip -d Android/cmdline-tools
mv Android/cmdline-tools/cmdline-tools Android/cmdline-tools/latest
# ADD This to your .bashrc or .zshrc
export ANDROID_HOME=$HOME/Android
# Make sure emulator path comes before tools. Had trouble on Ubuntu with emulator from /tools being loaded
# instead of the one from /emulator
export PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/cmdline-tools/latest:$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$PATH"
sdkmanager --update
sdkmanager --list
# find current version
sdkmanager --list | grep build-tools
sdkmanager "build-tools;30.0.3" "platform-tools" "platforms;android-30" "tools"
sdkmanager --licenses
# install gradle (WIP)
Thank you!
Worked very well here.