I'm trying to install Android Studio on a 64-bit Fedora 21 system.
I got the JRE and JDK pre-requisites installed, unpacked the Android Studio installation, and from its "bin" directory issued "sh studio.sh" to complete the installation.
The Setup Wizard failed with message "Unable to run mksdcard SDK tool" and suggested that 32-bit libraries might be needed.
Even i got the same error while installing Android sdk in ubuntu 14.04. This is a compatibility issue where you're trying to install Android SDK in a 64 bit system which inturn requires some 32 bit binaries for completing the installation.
Thats it. All the required 32bit binaries will get installed. once it gets installed, you can restart the installation of Android SDK, which will get installed completely.
From a discussion of the problem at http://forums.fedoraforum.org/showthread.php?t=303238 I installed several packages with the command
After these (and their dependencies) were successfully installed, clicking "RETRY" in the Setup Wizard popup displaying the error allowed the installation of Android Studio to proceed to a successful completion.
Please refer on this official documentation https://developer.android.com/studio/troubleshoot.html#linux-libraries
Shortly i put the snippets here
Linux libraries
If you are running Android Studio on a 64-bit Linux machine, you may need to install some specific libraries, as follows.
If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
If you are running 64-bit Fedora, the command is:
Please note that those instructions can be obsolete someday, so it is better to follow / visit the official site to prevent unresolved problems
on Fedora 24 login with su
(This answer is for an Ubuntu distribution)
If you are running the 64-bit Ubuntu, the following fix should solve your problem:
UPDATE:
For Ubuntu 15.10 and 16 (Provided by tony gil and briankip) :
This also works on GNU/Linux Debian 9 (Stretch) x86_64.
The Fedora Project Wiki also has an article about how to set up Android Development.
For 64-bit systems, you will have to install these packages
For Fedora 22+ on a 64-bit system, you need to use dnf to install these packages