Jump to content

Android Studio:Installasi di Fedora

From Wiki
Revision as of 06:13, 19 November 2022 by Kangtain (talk | contribs) (Source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Install Android Studio Using Snap

Android studio is available as a snap package for Fedora operating system. So, first, install the Snap package management on your system.

sudo dnf install -y snapd
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install core && sudo snap refresh core

Then, install Android Studio using the snap command.

sudo snap install android-studio --classic

The installation will take some time to complete. After installing Android Studio, verify the Android Studio installation using the below command.

sudo snap list android-studio

Output:

Name            Version      Rev  Tracking       Publisher     Notes
android-studio  2021.2.1.14  121  latest/stable  snapcrafters  classic

You may need to link the executable to /usr/local/bin directory so that you can start Android Studio using the android-studio command.

sudo ln -sf /snap/bin/android-studio /usr/local/bin/android-studio

Install Android Studio From Official Archive

First, install 32-bit libraries for Android Studio installation.

sudo dnf install -y zlib.i686 ncurses-libs.i686 bzip2-libs.i686

Then, open a web browser and visit the below link to download the latest version of Android Studio from the official website.

OR

Use the below command to download the Android Studio package using the terminal.

cd /tmp
wget https://dl.google.com/dl/android/studio/ide-zips/2021.2.1.14/android-studio-2021.2.1.14-linux.tar.gz

Next, extract the downloaded archive using the tar command.

sudo tar -zxvf android-studio-*-linux.tar.gz
sudo mv android-studio /opt/

Then link the executable to /bin directory so that you can start Android Studio using the android-studio command.

sudo ln -sf /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio

You may like to create a desktop entry so that you can start Android Studio from the Activities menu.

sudo vi /usr/share/applications/android-studio.desktop

Use the following information in the above file.

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Comment=Android Studio
Exec=bash -i "/opt/android-studio/bin/studio.sh" %f
Icon=/opt/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio
Name[en_GB]=android-studio.desktop

Source