Android Studio:Installasi di Fedora
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.
<syntaxhighlight lang="bash"> sudo dnf install -y snapd </syntaxhighlight>
<syntaxhighlight lang="bash"> sudo ln -s /var/lib/snapd/snap /snap </syntaxhighlight>
<syntaxhighlight lang="bash"> sudo snap install core && sudo snap refresh core </syntaxhighlight>
Then, install Android Studio using the snap command.
<syntaxhighlight lang="bash"> sudo snap install android-studio --classic </syntaxhighlight>
The installation will take some time to complete. After installing Android Studio, verify the Android Studio installation using the below command.
<syntaxhighlight lang="bash"> sudo snap list android-studio </syntaxhighlight>
Output: <syntaxhighlight lang="bash"> Name Version Rev Tracking Publisher Notes android-studio 2021.2.1.14 121 latest/stable snapcrafters classic </syntaxhighlight>
You may need to link the executable to /usr/local/bin directory so that you can start Android Studio using the android-studio command.
<syntaxhighlight lang="bash"> sudo ln -sf /snap/bin/android-studio /usr/local/bin/android-studio </syntaxhighlight>
Install Android Studio From Official Archive
First, install 32-bit libraries for Android Studio installation.
<syntaxhighlight lang="bash"> sudo dnf install -y zlib.i686 ncurses-libs.i686 bzip2-libs.i686 </syntaxhighlight>
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.
<syntaxhighlight lang="bash"> cd /tmp </syntaxhighlight>
<syntaxhighlight lang="bash"> wget https://dl.google.com/dl/android/studio/ide-zips/2021.2.1.14/android-studio-2021.2.1.14-linux.tar.gz </syntaxhighlight>
Next, extract the downloaded archive using the tar command.
<syntaxhighlight lang="bash"> sudo tar -zxvf android-studio-*-linux.tar.gz </syntaxhighlight>
<syntaxhighlight lang="bash"> sudo mv android-studio /opt/ </syntaxhighlight>
Then link the executable to /bin directory so that you can start Android Studio using the android-studio command.
<syntaxhighlight lang="bash"> sudo ln -sf /opt/android-studio/bin/studio.sh /usr/local/bin/android-studioCOPY </syntaxhighlight>
You may like to create a desktop entry so that you can start Android Studio from the Activities menu.
<syntaxhighlight lang="bash"> sudo vi /usr/share/applications/android-studio.desktopCOPY </syntaxhighlight>
Use the following information in the above file.
<syntaxhighlight lang="bash"> [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 </syntaxhighlight>
Source