Error: Unable to run mksdcard SDK tool
JavaAndroidAndroid StudioJava Problem Overview
Keep getting an error in the set-up wizard while trying to install android studio on Ubuntu.
"Unable to run mksdcard SDK tool."
Also, in the terminal I get this:
[ 115528] ERROR - tRunWizard$SetupProgressStep$1 - Android Studio 1.1.0 Build #AI-135.1740770
[ 115531] ERROR - tRunWizard$SetupProgressStep$1 - JDK: 1.8.0_40
[ 115531] ERROR - tRunWizard$SetupProgressStep$1 - VM: Java HotSpot(TM) 64-Bit Server VM
[ 115531] ERROR - tRunWizard$SetupProgressStep$1 - Vendor: Oracle Corporation
[ 115531] ERROR - tRunWizard$SetupProgressStep$1 - OS: Linux
[ 115532] ERROR - tRunWizard$SetupProgressStep$1 - Last Action:
Java Solutions
Solution 1 - Java
This really needs to be added to the documentation, which is why I filed an issue about it a few months ago...
You need some 32-bit binaries, and you have a 64-bit OS version (apparently). Try:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
That worked for me on Ubuntu 14.10.
UPDATE 2017-12-16: The details will vary by Linux distro and version. So for example, this answer covers newer Ubuntu versions.
Solution 2 - Java
For UBUNTU 15.04,15.10,16.04 LTS, Debian 8 & Debian 9 Try this command:
sudo apt-get install lib32stdc++6
Solution 3 - Java
For Ubuntu, you can try:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
For Cent OS/RHEL try :
sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
Then, re-install the Android Studio and get success.
Solution 4 - Java
Here's what you need to do to fix the issue on Arch Linux :
-
Enable the
multilib
repository on your system if you have not already done so by uncommenting the[multilib]
section in/etc/pacman.conf
:[multilib] Include = /etc/pacman.d/mirrorlist
-
Update pacman :
# pacman -Suy
-
Install the 32 bit version of libstdc++5 :
# pacman -S lib32-libstdc++5
Solution 5 - Java
This worked for me on Ubuntu 15.04
sudo aptitude install lib32stdc++6
Firstly, I installed aptitude, which helps in installing other dependencies too.
Solution 6 - Java
if you do this:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
.
You may get this error:
E: Unable to locate package lib32bz2-1.0
E: Couldn't find any package by glob 'lib32bz2-1.0'
E: Couldn't find any package by regex 'lib32bz2-1.0'
So i suggest just doing this:
sudo apt-get install lib32stdc++6
And also, the AOSP should look for how while installing Android-Studio, that is installed too.
Solution 7 - Java
Just to say 16.04, I'm running
sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 lib32stdc++6
seems to work on a vanilla install after installing oracle-jdk-8
Solution 8 - Java
This workaround also works with 15.04 (64bit). Since there isn't (yet?) lib32bz2-1.0 for vivid:
http://packages.ubuntu.com/search?keywords=lib32bz2-1.0
I installed the one from Utopic.
Solution 9 - Java
In case of lubuntu 14.04 use
> sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
P.S-no need to restart the system.
Solution 10 - Java
This is what worked for me
When I tried the Accepted ans my Android Studio hangs on start-up
This is the link
> http://tools.android.com/tech-docs/linux-32-bit-libraries
and This is the Command
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1