How to solve “Unable to run mksdcard SDK tool” when installing Android Studio on Fedora 21?

浪尽此生 提交于 2019-11-29 21:18:46

(This answer is for an Ubuntu distribution)

If you are running the 64-bit Ubuntu, the following fix should solve your problem:

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

UPDATE:

For Ubuntu 15.10 and 16 (Provided by tony gil and briankip) :

sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6

This also works on GNU/Linux Debian 9 (Stretch) x86_64.

mcduffee

From a discussion of the problem at http://forums.fedoraforum.org/showthread.php?t=303238 I installed several packages with the command

sudo yum install compat-libstdc++-296.i686 compat-libstdc++-33.i686 ncurses-libs.i686 compat-libstdc++-33.x86_64

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.

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

yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

For Fedora 22+ on a 64-bit system, you need to use dnf to install these packages

dnf install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

Other answers here doesn't seem to work for the Fedora. So here I came up with a tested solution for this :

sudo dnf install compat-libstdc++-296 compat-libstdc++-33 glibc libgcc nss-softokn-freebl libstdc++ ncurses-libs zlib-devel.i686 ncurses-devel.i686 ant

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.

Here is the steps to resolve the issue.

  1. Open the a new terminal (ctrl + alt +t or R-click and new terminal)
  2. paste the command " sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 " and if action requires password, give it.

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.

Find the Tutorial here!

Sayed Rizwan Hashmi

on Fedora 24 login with su

dnf install compat-libstdc++-296 compat-libstdc++-33 glibc libgcc nss-softokn-freebl libstdc++ ncurses-libs zlib-devel.i686 ncurses-devel.i686 ant

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:

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32bz2-1.0

If you are running 64-bit Fedora, the command is:

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

Please note that those instructions can be obsolete someday, so it is better to follow / visit the official site to prevent unresolved problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!