Install Android Studio on Fedora 26

It’s a good day. I have tested for a while Fedora 26 Alpha and I can say that it’s pretty rock stable. Really, I had less issue than before with an alpha version of an operative system.

The next step. The Android Studio installation

Like I said above, the system (actually a Lenovo E470) is incredibly stable and all works out of the box. I’m really really pleased with Fedora 26 Alpha, impressed.

The next step (in my everyday use) to stress the system is to install Android Studio and to find if it’s working or not on Fedora 26. And, last but not least, try to find if it’s fast, less or more than Fedora 25.

First, let’s try to install it.

Android Studio IDE on Fedora 26 Alpha
Android Studio IDE on Fedora 26 Alpha

Go on Android Studio – The Official IDE for Android page and download Android Studio.

Then, unpack it on the /opt folder:


$ sudo unzip ~/Downloads/android-studio-ide-version-linux.zip -d /opt/

Note. My user is an administrator. I have downloaded file in the ~/Downloads folder. -version- depends on what you download.


$ cd /opt/android-studio/bin/
$ ./studio.sh

Android Studio installation process was flawless completed, but I got some errors on creating Android Virtual Devices:


Unable to create a virtual device: 
Unable to create Android virtual device
Unable to run mksdcard SDK tool.

So, a look at the official documentation suggests to install some libraries:


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

Got a warning and seems impossible to create an Android Virtual Device:


[ 26781] WARN - vdmanager.AvdManagerConnection - 
~/Android/Sdk/emulator/mksdcard: error while loading shared libraries: 
libgcc_s.so.1: cannot open shared object file: No such file or directory

So, we need to install libs for mksdcard SDK Tool:


sudo dnf install compat-libstdc++-296.i686 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 glibc.i686 glibc-devel.i686 libstdc++.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

Note. Thanks to Sudhir Khanger, it seems working with the install of  libgcc.i686 only.

And now Android Studio and emulators are fully working!

Android Studio IDE on Fedora 26 Alpha
Android Studio IDE on Fedora 26 Alpha

Finally, we can make a launcher for Android Studio. We can easily do it inside from the IDE, just use Tools > Create Desktop Entry > OK. At a first use, Android Studio IDE seems fast as in Fedora 25 stable.

13 comments

  1. And I see only black screen and messages:

    emulator: Error while connecting to socket ‘127.0.0.1:1970’: 111 -> Connection refused
    emulator: ASC 127.0.0.1:1970: Retrying connection. Connector FD = 36

Leave a Reply

Your email address will not be published. Required fields are marked *