简体   繁体   中英

Error: Unable to run mksdcard SDK tool

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:  

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.

对于UBUNTU 15.04,15.10,16.04 LTS,Debian 8和Debian 9尝试此命令:

sudo apt-get install lib32stdc++6

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.

Here's what you need to do to fix the issue on Arch Linux :

  1. 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 
  2. Update pacman :

     # pacman -Suy 
  3. Install the 32 bit version of libstdc++5 :

     # pacman -S lib32-libstdc++5 

This worked for me on Ubuntu 15.04

sudo aptitude install lib32stdc++6

Firstly, I installed aptitude, which helps in installing other dependencies too.

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.

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

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.

In case of lubuntu 14.04 use

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

PS-no need to restart the system.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM