Site icon 지락문화예술공작단

How to solve “Unable to run mksdcard SDK tool” when installing Android Studio on Centos7

 

리눅스에서 안드로이드 스튜디오 설치&실행 시 “Unable to run mksdcard SDK tool” 오류

 

환경

OS : LINUX(CentOS-7.2.1511) / 64bit
JAVA : jdk-1.7.0_80 (JAVA_HOME=/usr/local/java)
AndroidStudio : android-studio-ide-141.2456560-linux.zip

 

터미널 콘솔 에러

studio.sh 실행시


[ 6301] WARN - dea.updater.SdkComponentSource - Couldn't find existing SDK
[ 16543] ERROR - ard.ConsolidatedProgressStep$1 - Unable to run mksdcard SDK tool.
com.android.tools.idea.welcome.install.WizardException: Unable to run mksdcard SDK tool.
at com.android.tools.idea.welcome.install.CheckSdkOperation.perform(CheckSdkOperation.java:128)
at com.android.tools.idea.welcome.install.CheckSdkOperation.perform(CheckSdkOperation.java:40)
at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68)
at com.android.tools.idea.welcome.install.InstallOperation$OperationChain.perform(InstallOperation.java:151)
at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68)
at com.android.tools.idea.welcome.install.InstallOperation$OperationChain.perform(InstallOperation.java:149)
at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68)
at com.android.tools.idea.welcome.install.InstallOperation$OperationChain.perform(InstallOperation.java:149)
at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68)
at com.android.tools.idea.welcome.install.InstallOperation$OperationChain.perform(InstallOperation.java:149)
at com.android.tools.idea.welcome.install.InstallOperation.execute(InstallOperation.java:68)
at com.android.tools.idea.welcome.wizard.InstallComponentsPath.runLongOperation(InstallComponentsPath.java:297)
at com.android.tools.idea.welcome.wizard.ConsolidatedProgressStep.doLongRunningOperation(ConsolidatedProgressStep.java:78)
at com.android.tools.idea.welcome.wizard.ConsolidatedProgressStep.access$000(ConsolidatedProgressStep.java:32)
at com.android.tools.idea.welcome.wizard.ConsolidatedProgressStep$1.run(ConsolidatedProgressStep.java:58)
at com.android.tools.idea.welcome.wizard.FirstRunWizardHost$LongRunningOperationWrapper.run(FirstRunWizardHost.java:434)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)
[ 16545] ERROR - ard.ConsolidatedProgressStep$1 - Android Studio 1.5.1 Build #AI-141.2456560
[ 16545] ERROR - ard.ConsolidatedProgressStep$1 - JDK: 1.7.0_80
[ 16545] ERROR - ard.ConsolidatedProgressStep$1 - VM: Java HotSpot(TM) 64-Bit Server VM
[ 16545] ERROR - ard.ConsolidatedProgressStep$1 - Vendor: Oracle Corporation
[ 16545] ERROR - ard.ConsolidatedProgressStep$1 - OS: Linux
[ 16545] ERROR - ard.ConsolidatedProgressStep$1 - Last Action:

안드로이드스튜디오 상에서 발생하는 에러

Downloading android-sdk_r22.6.2-linux.tgz from https://dl.google.com/android/android-sdk_r22.6.2-linux.tgz
Unpacking android-sdk_r22.6.2-linux.tgz
/usr/bin/tar xzvfC /tmp/AndroidStudio0FirstRun/android-sdk_r22.6.2-linux.tgz /tmp/AndroidStudio0FirstRun/android-sdk_r22.6.2-linux.tgz-unpacked
Unable to run mksdcard SDK tool.

 

추가 패키지가 필요함

공식 홈페이지에도 나와있음
URL : http://developer.android.com/intl/ko/sdk/installing/index.html?pkg=studio


To set up Android Studio on Linux:

Unpack the .zip file you downloaded to an appropriate location for your applications.
To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh.
You may want to add android-studio/bin/ to your PATH environmental variable so that you can start Android Studio from any directory.
If the SDK is not already installed, follow the setup wizard to install the SDK and any necessary SDK tools.
Note: To support 32-bit apps on a 64-bit machine, you will need to install the ia32-libs, lib32ncurses5-dev, and lib32stdc++6 packages.


공식 홈페이지에서는

"Ubuntu® 14.04, Precise Pangolin(32비트 애플리케이션 실행 가능 64비트 버전)에서 테스트됨"

이라고 되으나..

내 환경은 CentOS7 이기 때문에 아래와 같은 방법으로 패키지를 추가 설치했다.

yum install compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 ncurses-libs.i686

물론 해당 패키지가 이미 설치되어 있어서 오류가 발생하지 않는다면… 이 작업은 필요가 없다.

당연히 그런 상황이라면, 이 글을 찾아보지 않으셨겠지…

Exit mobile version