To update and upgrade Ubuntu APT packages, first open up the terminal by pressing CTRL+ALT+T and run the following command:
sudo apt update && sudo apt upgrade
Step 2: Installing JDK
Now add PPA repository of Android Studio to your Ubuntu 22.04 system by utilizing the given add-apt-repository command:
sudo add-apt-repository ppa:maarten-fonville/android-studio
sudo apt update
Now install Android Studio in Ubuntu with the help of the provided command:
sudo apt install android-studio -y
Install additional plugins for cross-platform programming (if needed): Dart, Flutter, Genymotion
To uninstall Android Studio from Ubuntu, you have to execute the following command:
sudo apt update
sudo apt purge android-studio
sudo apt autoremove