Unable to install Android Studio in Ubuntu [duplic

2019-01-10 04:58发布

This question already has an answer here:

I'm using Ubuntu Gnome 14.04, and I have Java 8 installed (both the JDK and the JRE).

When I was installing Android Studio everything worked, but a message appeared saying:

Unable to run mksdcard SDK tool

How can I install Android Studio correctly, or how do I fix this ?

10条回答
We Are One
2楼-- · 2019-01-10 05:35

This issue arises when your 64 bit os tries to install the Android SDK which in turns tries to install some 32 bit binaries and thus is the issue of compatibility.

Open an additional terminal and type

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

would help to install all the required binaries. After this, start the afresh the Android SDK installation process.

查看更多
孤傲高冷的网名
3楼-- · 2019-01-10 05:40

Checkout this page

If you are running a 64-bit distribution on your development machine, you need to install additional packages first. For Ubuntu 13.10 (Saucy Salamander) and above, install the libncurses5:i386, libstdc++6:i386, and zlib1g:i386 packages using apt-get:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
查看更多
疯言疯语
4楼-- · 2019-01-10 05:45

Presuming that you are running the 64bit Ubuntu, the fix suggested for "Issue 82711" should solve your problem.

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

Update: For Ubuntu 15.10 & 16.04 sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6

查看更多
Bombasti
5楼-- · 2019-01-10 05:46

For Linux Mint run

sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0 lib32stdc++6
查看更多
登录 后发表回答