Android studio unable to run mksdcard sdk tool

Android Studio Installation -Unable to run mksdcard SDK tool. on 32 bit Ubuntu 12.10

So, I am trying to install Android Studio in

OS : UBUNTU 12.10, 32 bit.

And I tried installing it for 3-4 times each time it got stuck due to slow internet connection and showing Connection Lost in the terminal.

Now , this time when I again did

Unable to run mksdcard SDK tool. One common reason for this failure is missing required libraries Please fix the underlying issue and retry.

I saw various posts which shows this occurs in 64 bit OS and installing libraries using

sudo apt-get install ia32-libs

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

will install required 32 bit libraries , but I am already on a 32 bit OS .

and when I try above command , I get

E: Package ‘ia32-libs’ has no installation candidate.

Software center also shows negative result:

So, the point is has anyone came across this in a 32 bit UBUNTU 12.10 OS . Any workaround will be greatly appreciated .

Edit 1 Output when I try to install mentioned libraries for Ubuntu.

/Android/Sdk/tools$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 Reading package lists. Done Building dependency tree
Reading state information. Done Package lib32bz2-1.0 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

Package lib32ncurses5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

Package lib32stdc++6 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

Package lib32z1 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package ‘lib32z1’ has no installation candidate E: Package ‘lib32ncurses5’ has no installation candidate E: Package ‘lib32bz2-1.0’ has no installation candidate E: Package ‘lib32stdc++6’ has no installation candidate

In above output it is mentioned that package may be available from another source . can someone please help , what that source may be ?

Is it possible to compile these libraries from source . If so , how can I do it ?

Источник

how to fix mksdcard error on Android Studio Setup on Mac?

How do I fix this error on running the Android Studio setup on Mac OSX10.7.5 «Unable to run mksdcard SDK tool. One common reason for this failure is missing required libraries Please fix the underlying issue and retry.»

4 Answers 4

The mksdcard utility distributed with recent versions of the Android SDK was compiled in a way that it won’t run on OS X versions older than 10.8. You can replace your mksdcard with an older copy of the utility that’s known to work on OS X 10.7.5, such as the one in http://dl-ssl.google.com/android/repository/tools_r22.6.2-macosx.zip.

Credit where its due: This solution is from IAMSME’s answer to a similar question, which I found via googling «illegal instruction 4» after I got that error message when a hunch led me to test mksdcard on the command line.

Читайте также:  Как android подключить dvd

Try running a Package Manager (like apt-get or brew, you will likely need brew since you are on Mac OS X) for downloading some additional packages Android Studio couldn’t install.

sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 (Command line for Ubuntu OS)

Apart from setup Android Studio should check whether is capable to run 32-bit components like aapt or adb. Hopefully it will serve you as a work around.

BTW this is a Google bug currently being addressed (not sure what Titanium Studio has to do here as quoted by Mark previously).

Источник

How to solve «Unable to run mksdcard SDK tool» when installing Android Studio on Fedora 21?

I’m trying to install Android Studio on a 64-bit Fedora 21 system.

I got the JRE and JDK pre-requisites installed, unpacked the Android Studio installation, and from its «bin» directory issued «sh studio.sh» to complete the installation.

The Setup Wizard failed with message «Unable to run mksdcard SDK tool» and suggested that 32-bit libraries might be needed.

7 Answers 7

(This answer is for an Ubuntu distribution)

If you are running the 64-bit Ubuntu, the following fix should solve your problem:

UPDATE:

For Ubuntu 15.10 and 16 (Provided by tony gil and briankip) :

This also works on GNU/Linux Debian 9 (Stretch) x86_64.

From a discussion of the problem at http://forums.fedoraforum.org/showthread.php?t=303238 I installed several packages with the command

After these (and their dependencies) were successfully installed, clicking «RETRY» in the Setup Wizard popup displaying the error allowed the installation of Android Studio to proceed to a successful completion.

The Fedora Project Wiki also has an article about how to set up Android Development.

For 64-bit systems, you will have to install these packages

yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

For Fedora 22+ on a 64-bit system, you need to use dnf to install these packages

dnf install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

Other answers here doesn’t seem to work for the Fedora. So here I came up with a tested solution for this :

Even i got the same error while installing Android sdk in ubuntu 14.04. This is a compatibility issue where you’re trying to install Android SDK in a 64 bit system which inturn requires some 32 bit binaries for completing the installation.

Here is the steps to resolve the issue.

  1. Open the a new terminal (ctrl + alt +t or R-click and new terminal)
  2. paste the command » sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6 » and if action requires password, give it.

Thats it. All the required 32bit binaries will get installed. once it gets installed, you can restart the installation of Android SDK, which will get installed completely.

on Fedora 24 login with su

Shortly i put the snippets here

Linux libraries

If you are running Android Studio on a 64-bit Linux machine, you may need to install some specific libraries, as follows.

If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:

If you are running 64-bit Fedora, the command is:

Please note that those instructions can be obsolete someday, so it is better to follow / visit the official site to prevent unresolved problems

Источник

Arch Linux

You are not logged in.

#1 2015-07-01 10:07:54

[SOLVED] Unable to run mksdcard SDK tool.

When I was installing Android Studio, I came across the error: Unable to run mksdcard SDK tool, when I was downloading the required components.
There is no other information about what is going wrong. Googling the problem is leading me to solutions for Ubuntu-based distributions, which apparently do not work for Arch. I already tried Java 7 and 8, no change.
Surprisingly on all my prior Arch installations, that error didn’t show up.
Or am I missing some trivial packages?^^

Thanks in advance!

Last edited by jhemp (2015-07-01 17:50:44)

#2 2015-07-01 11:19:20

Re: [SOLVED] Unable to run mksdcard SDK tool.

#3 2015-07-01 14:54:03

Re: [SOLVED] Unable to run mksdcard SDK tool.

I always installed it via the zip-file from http://developer.android.com and simply executed the studio.sh file.
But now I got it installed with yaourt, but that was problematic as well, some dependencies like lib32-mesa couldn’t be loaded, so I had to simply enable the multlib repositories for 32bit stuff.
I don’t know if the latter was crucial for the «traditional» way, but I hope I could help someone else.

Читайте также:  Где найти кэш для андроид

#4 2016-01-13 06:42:38

Re: [SOLVED] Unable to run mksdcard SDK tool.

Hello ,
I’ve got the same error.So I tried to install through yaourt but curl is giving error.

«»curl error: Couldn’t resolve host name
error: target not found: android-studio»»»

PS: mutlib is enabled already.

Last edited by kolla (2016-01-13 06:44:21)

#5 2017-08-30 01:50:10

Re: [SOLVED] Unable to run mksdcard SDK tool.

Yep, not solved unfortunately.

Not sure what solved for OP. but yaourt repo is broken. No way to install from there. And the regular way, directly from google, the mksdcard tool will not run.

I do not even know who to debug this.

$ file mksdcard
mksdcard: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=119b9b83c17fa0228acfd582e951ea8b050e1229, not stripped

it is an executable just fine.

$ ls -lah
total 1.7M
drwxr-xr-x 6 gcb gcb 4.0K Aug 29 18:37 .
drwxr-xr-x 12 gcb gcb 4.0K Aug 29 18:30 ..
-rwxr-xr-x 1 gcb gcb 4.7K Aug 29 18:23 android
drwxr-xr-x 2 gcb gcb 4.0K Aug 29 18:23 bin
-rwxr-xr-x 1 gcb gcb 629K Aug 29 18:23 emulator
-rwxr-xr-x 1 gcb gcb 386K Aug 29 18:23 emulator-check
drwxr-xr-x 6 gcb gcb 4.0K Aug 29 18:23 lib
-rwxr-xr-x 1 gcb gcb 12K Aug 29 18:23 mksdcard
-rwxr-xr-x 1 gcb gcb 1.3K Aug 29 18:23 monitor
-rw-r—r— 1 gcb gcb 615K Aug 29 18:23 NOTICE.txt
-rw-r—r— 1 gcb gcb 18K Aug 29 18:23 package.xml
drwxr-xr-x 7 gcb gcb 4.0K Aug 29 18:23 proguard
-rw-r—r— 1 gcb gcb 139 Aug 29 18:23 source.properties
drwxr-xr-x 2 gcb gcb 4.0K Aug 29 18:23 support

Has ok permissions. Same as ./android which executes fine.

$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 211G 82G 126G 40% /

It is not in any weird FS with exec flag disable or something.

$ ./mksdcard 2G sd.img
bash: ./mksdcard: No such file or directory

yet I cannot execute it.

#6 2017-08-30 07:31:03

Re: [SOLVED] Unable to run mksdcard SDK tool.

You likely lack multilib packages, read the comments on https://aur.archlinux.org/packages/android-studio/ for more info on what exactly.

Either way, this topic is old, don’t necrobump and make sure to wrap command output into [ code ] tags in the future. Should you run into future issues despite reading the AUR comments create your own thread.

Источник

Как решить проблему «Unable to run mksdcard SDK tool» при установке Android Studio на Fedora 21?

Я пытаюсь установить Android Studio на систему 64-bit Fedora 21.

Я установил пререквизиты JRE и JDK, распаковал установку Android Studio и из ее каталога «bin» выдал «sh studio.sh» для завершения установки.

Мастер Установки потерпел неудачу с сообщением «Unable to run mksdcard SDK tool» и предположил, что могут потребоваться 32-разрядные библиотеки.

7 ответов

Hy я пытаюсь установить Android Studio, я новичок в этом, у меня есть следующая проблема: при установке Android Studio в мастере установки в конце мастер показывает мне эту ошибку: Installing Android SDK Tools, revision 24.0.2 Installed Android SDK Tools, revision 24.0.2 Installing Google APIs.

Как исправить эту ошибку при запуске программы установки Android Studio на Mac OSX10.7.5 Не удалось запустить инструмент mksdcard SDK. Одной из распространенных причин этого сбоя является отсутствие необходимых библиотек Пожалуйста, исправьте основную проблему и повторите попытку.

( Этот ответ предназначен для распределения Ubuntu )

Если вы используете 64-bit Ubuntu , следующее исправление должно решить вашу проблему:

UPDATE:

Для Ubuntu 15.10 и 16 ( предоставлено Тони Гилом и брианкипом ) :

Это также работает на GNU / Linux Debian 9 (Stretch) x86_64.

Из обсуждения проблемы в http:/ / forums.fedoraforum.org/showthread. php?t=303238 я установил несколько пакетов с помощью команды

После того как они (и их зависимости) были успешно установлены, нажатие кнопки «RETRY» во всплывающем окне Мастера установки, отображающем ошибку, позволило установке Android Studio перейти к успешному завершению.

Читайте также:  Калибровка компаса андроид хиаоми

В проекте Fedora Wiki также есть статья о том, как настроить разработку Android.

Для систем 64-bit вам придется установить эти пакеты

yum install glibc.i686 glibc-devel.i686 libstdc++. i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

Для Fedora 22+ в системе 64-bit вам необходимо использовать dnf для установки этих пакетов

dnf install glibc.i686 glibc-devel.i686 libstdc++. i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

Я работаю над setup Android Studio в Ubuntu, я попытался установить пакеты, которые google упомянул для 64Bit OS sudo dpkg —add-architecture i386 sudo apt-get update sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386 но все равно не работает и показывает эту ошибку: вот журнал.

При попытке установить Android Studio на мой ноутбук Linux я получаю Unable to Run mksdcard tool из того, что могу сказать из поиска, это обычно вызвано отсутствием 32-битных библиотек совместимости на 64 bit Linux, однако я запускаю его на процессоре ARMv7, используя проект crouton для.

Другие ответы здесь, похоже, не работают для Fedora. Так вот я придумал проверенное решение для этого :

Даже я получил ту же ошибку при установке Android sdk в ubuntu 14.04. Это проблема совместимости, когда вы пытаетесь установить Android SDK в системе 64 bit, которая в свою очередь требует некоторых 32-битных двоичных файлов для завершения установки.

Вот шаги для решения этой проблемы.

  1. Откройте a new terminal (ctrl + alt +t или R-click и new terminal)
  2. вставьте команду «sudo apt-get установите lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6» и если действие требует пароля, дайте его.

Вот и все. Все необходимые 32-битные двоичные файлы будут установлены. как только он будет установлен, вы можете перезапустить установку Android SDK, которая будет установлена полностью.

на Fedora 24 войдите в систему с помощью su

Вскоре я поместил фрагменты здесь

Linux библиотеки

Если вы используете Android Studio на машине 64-bit Linux, вам может потребоваться установить некоторые конкретные библиотеки, как показано ниже.

Если вы используете версию 64-bit Ubuntu, вам необходимо установить некоторые 32-битные библиотеки с помощью следующей команды:

Если вы используете 64-bit Fedora, то команда:

Пожалуйста, обратите внимание, что эти инструкции могут когда-нибудь устареть, поэтому лучше следовать им / посетить официальный сайт , чтобы предотвратить нерешенные проблемы

Похожие вопросы:

Я снизил android studio и попытался установить на ubuntu 16.04 64 bit, но у него есть ошибка unable to run mksdcard sdk tool . Я проверил все решения, но они тоже приводят к ошибкам.

Я использую операционную систему 64 bit(ubuntu 15.04), а также новую платформу linux. Когда я пытаюсь установить android studio, я получаю ошибку Unable to run mksdcard SDK tool. Я пробую это, и это.

Продолжайте получать ошибку в Мастере настройки при попытке установить android studio на Ubuntu. Unable to run mksdcard SDK tool. Кроме того, в terminal я получаю это: [ 115528] ERROR -.

Hy я пытаюсь установить Android Studio, я новичок в этом, у меня есть следующая проблема: при установке Android Studio в мастере установки в конце мастер показывает мне эту ошибку: Installing.

Как исправить эту ошибку при запуске программы установки Android Studio на Mac OSX10.7.5 Не удалось запустить инструмент mksdcard SDK. Одной из распространенных причин этого сбоя является отсутствие.

Я работаю над setup Android Studio в Ubuntu, я попытался установить пакеты, которые google упомянул для 64Bit OS sudo dpkg —add-architecture i386 sudo apt-get update sudo apt-get install.

При попытке установить Android Studio на мой ноутбук Linux я получаю Unable to Run mksdcard tool из того, что могу сказать из поиска, это обычно вызвано отсутствием 32-битных библиотек совместимости.

Я установил Android Studio, но сейчас не в установке Android SDK когда начнется запуск его. В нем говорится: Невозможно запустить инструмент mksdcard sdk, а также советы о том, что некоторые.

Если я начну свой проект Unity я получу это сообщение: Unable to find the Android SDK manager tool. Required Android packages (extra-google-m2repository) can not be installed. Android SDK path not.

Я использую VPN и установил Android Studio, но теперь мне не удается установить Android SDK. Если я запускаю его, то получаю сообщение unable to run mksdcard sdk tool с подсказками, которые могут.

Источник

Оцените статью