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 question is related to
java
android
android-studio
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.
For UBUNTU 15.04,15.10,16.04 LTS, Debian 8 & Debian 9 Try this command:
sudo apt-get install lib32stdc++6
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
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
This is what worked for me
When I tried the Accepted ans my Android Studio hangs on start-up
This is the link
and This is the Command
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
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.
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.
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.
This worked for me on Ubuntu 15.04
sudo aptitude install lib32stdc++6
Firstly, I installed aptitude, which helps in installing other dependencies too.
Source: Stackoverflow.com