Java 错误:无法运行 mksdcard SDK 工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29241640/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 07:38:31  来源:igfitidea点击:

Error: Unable to run mksdcard SDK tool

javaandroidandroid-studio

提问by user2692997

Keep getting an error in the set-up wizard while trying to install android studio on Ubuntu.

尝试在 Ubuntu 上安装 android studio 时,在设置向导中不断出现错误。

"Unable to run mksdcard SDK tool."

Also, in the terminal I get this:

另外,在终端中我得到了这个:

[ 115528]  ERROR - tRunWizard$SetupProgressStep - Android Studio 1.1.0  Build #AI-135.1740770 
[ 115531]  ERROR - tRunWizard$SetupProgressStep - JDK: 1.8.0_40 
[ 115531]  ERROR - tRunWizard$SetupProgressStep - VM: Java HotSpot(TM) 64-Bit Server VM 
[ 115531]  ERROR - tRunWizard$SetupProgressStep - Vendor: Oracle Corporation 
[ 115531]  ERROR - tRunWizard$SetupProgressStep - OS: Linux 
[ 115532]  ERROR - tRunWizard$SetupProgressStep - Last Action:  

采纳答案by CommonsWare

This really needs to be added to the documentation, which is why I filed an issue about ita few months ago...

这确实需要添加到文档中,这就是为什么我几个月前提交了一个关于它的问题......

You need some 32-bit binaries, and you have a 64-bit OS version (apparently). Try:

您需要一些 32 位二进制文​​件,并且您有一个 64 位操作系统版本(显然)。尝试:

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

That worked for me on Ubuntu 14.10.

这在 Ubuntu 14.10 上对我有用。

UPDATE 2017-12-16: The details will vary by Linux distro and version. So for example, this answercovers newer Ubuntu versions.

更新 2017-12-16:详细信息因 Linux 发行版和版本而异。例如,此答案涵盖较新的 Ubuntu 版本。

回答by vmnogueira

This workaround also works with 15.04 (64bit). Since there isn't (yet?) lib32bz2-1.0 for vivid:

此解决方法也适用于 15.04(64 位)。由于还没有(还?)lib32bz2-1.0 生动:

http://packages.ubuntu.com/search?keywords=lib32bz2-1.0

http://packages.ubuntu.com/search?keywords=lib32bz2-1.0

I installed the one from Utopic.

我从 Utopic 安装了一个。

回答by chakri Reddy

For UBUNTU 15.04,15.10,16.04 LTS, Debian 8 & Debian 9Try this command:

对于UBUNTU 15.04、15.10、16.04 LTS、Debian 8 和 Debian 9试试这个命令:

sudo apt-get install lib32stdc++6

回答by Krishnadas PC

For Ubuntu, you can try:

对于 Ubuntu,您可以尝试:

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

For Cent OS/RHEL try :

对于 Cent OS/RHEL 尝试:

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

Then, re-install the Android Studio and get success.

然后,重新安装 Android Studio 并获得成功。

回答by kartikmaji

This worked for me on Ubuntu 15.04

这在 Ubuntu 15.04 上对我有用

sudo aptitude install lib32stdc++6

sudo aptitude install lib32stdc++6

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

首先,我安装了 aptitude,这也有助于安装其他依赖项。

回答by vjs3

In case of lubuntu14.04 use

lubuntu14.04 的情况下使用

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

须藤 apt-get 安装 lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

P.S-no need to restart the system.

PS-无需重启系统。

回答by connelblaze

if you do this: sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6. You may get this error:

如果你这样做: sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6。您可能会收到此错误:

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

sudo apt-get install lib32stdc++6

And also, the AOSP should look for how while installing Android-Studio, that is installed too.

而且,AOSP 应该在安装 Android-Studio 时寻找如何安装,也安装了。

回答by vivi

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

以下是解决 Arch Linux 上的问题所需的操作:

  1. Enable the multilibrepository 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
    
  1. multilib如果您尚未通过取消注释中的[multilib]部分来启用系统上的存储库/etc/pacman.conf

    [multilib]
    Include = /etc/pacman.d/mirrorlist
    
  2. 更新吃豆子:

    # pacman -Suy
    
  3. 安装 32 位版本的 libstdc++5 :

    # pacman -S lib32-libstdc++5
    

回答by Pritish Joshi

This is what worked for me

这对我有用

When I tried the Accepted ans my Android Studio hangs on start-up

当我尝试接受时,我的 Android Studio 在启动时挂起

This is the link

这是链接

http://tools.android.com/tech-docs/linux-32-bit-libraries

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

回答by MrMesees

Just to say 16.04, I'm running

只是说 16.04,我正在跑步

sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386 lib32stdc++6

seems to work on a vanilla install after installing oracle-jdk-8

安装 oracle-jdk-8 后似乎可以在 vanilla 安装上工作