Ubuntu-오류 : SD 카드를 만들지 못했습니다.
SD 카드에 쓰는 것에 대한 많은 게시물을 보았지만 내 문제는 다르다고 생각합니다. AVD를 만드는 과정에서 SD 카드를 만들 수 없습니다.
처음에는 Android SDK 및 AVD Manager를 사용하여
이름 : my_avd
대상 : Android 2.2-API 레벨 8
SD 카드 : 크기 : 1024 MiB
스킨 : 내장 : 기본 (HVGA)
하드웨어 : 속성 : 추상화 된 LCD를 선택했습니다. 밀도, 값 : 160
그러면
"AVD 'my_avd'생성 결과 :
오류 : SD 카드를 생성하지 못했습니다 . " 라는 메시지가있는 창이 나타납니다 .
비슷한 오류가 발생하여 명령 줄에서 프로세스를 반복하려고했습니다.
alex@alex-desktop:~$ android create avd -n my_avd -t 1 -c 1024M
Android 2.2 is a basic Android platform.
Do you wish to create a custom hardware profile [no]no
Error: Failed to create the SD card.
mksdcard 사용 지침을 따르려는 시도는 똑같이 비생산적이었습니다. 내 기본적인 리눅스 경험 부족이 여기서 문제를 일으킬 수 있다고 생각합니다. mksdcard를 사용하려고 할 때 파일이나 디렉토리를 찾을 수 없다고보고합니다. Linux에서 mksdcard 도구를 이러한 방식으로 사용할 수 있습니까?
alex@alex-desktop:~$ mksdcard 1024M ./sdcard.iso
bash: /home/alex/android-sdk-linux_x86/tools/mksdcard: No such file or directory
alex@alex-desktop:~$ sudo android create avd -n my_avd -t 1 -c 1024M
내 PATH 변수에 Android 도구 디렉토리를 추가했지만 분명히 다른 것이 누락 된 것 같습니다. 어떤 종류의 액세스 권한일까요?
sudo로 android 명령을 실행하려고 시도해도 도움이되지 않는 것 같습니다.
alex@alex-desktop:~/android-sdk-linux_x86/tools$ sudo ./android create avd -n my_avd -t 1 -c 1024M
Android 2.2 is a basic Android platform.
Do you wish to create a custom hardware profile [no]no
Error: Failed to create the SD card.
Eclipse와 ADT 플러그인을 설치하고 거기에서 관리자를 실행하려고 시도했습니다. 어떤 팁이라도 가장 감사하겠습니다. 내가 리눅스 초보 사용자라는 고급 경고이므로 확인해야 할 당연한 것 같더라도 여전히 놓쳤을 수 있습니다.
그래서 문제를 발견했습니다. 기본적으로 ia32-libs 패키지가 설치되지 않은 64 비트 Linux 설치를 사용하고있었습니다. mksdcard 유틸리티는이 패키지 없이는 실행되지 않습니다. 설치 후 AVD 매니저를 이용하여 문제없이 AVD를 구축 할 수있었습니다.
Ubuntu 16.04 LTS x64에서 Android Studio 2.1 (2.3.3에서도 테스트 됨)을 사용하여 터미널에서 실행합니다.
sudo apt-get install lib32stdc++6
나는 당신과 같은 오류가 있었고 방금 해결했기 때문에 도움이 될 수 있습니다 (당신의 오류가 나와 같은 문제로 인해 발생했다고 생각하지 않지만).
../tools의 모든 도구에 실행 권한이 없다는 것을 알았으므로
chmod -R 777 ../tools
명령 줄에서 마침내 작동합니다.
다른 사람들이 이미 작성했듯이 문제는 Linux 배포판이 64 비트 배포판이고 현재 Android Virtual Device ( AVD )가 제대로 작동 하려면 x86 라이브러리가 필요하다는 것입니다.
누군가 ia32-libs 설치를 제안했습니다 . 그러나 Ubuntu 14.04 LTS 에서는이 라이브러리를 찾을 수 없습니다. lib32z1 , lib32ncurses5 , lib32bz2-1.0 및 lib32stdc ++ 대체 libs를 사용하여 해결했습니다 .
sudo apt-get update
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++
방금 같은 문제가 발생했습니다. SDK 도구는 ia32-libs를 설치하지 않고 64 비트 Ubuntu에서 실행되지 않습니다 (예 : sudo apt-get install ia32-libs).
기본 OS 및 우분투에서 솔루션은 다음 패키지를 설치하는 것이 었습니다.
sudo apt-get install lib32ncurses5 lib32z1
sudo apt-get install libgcc1:i386
alex@alex-desktop:~$ mksdcard 1024M ./sdcard.iso
bash: /home/alex/android-sdk-linux_x86/tools/mksdcard: No such file or directory
alex@alex-desktop:~$ sudo android create avd -n my_avd -t 1 -c 1024M
I have found this problem & i find a way first:
cd /home/alex/android-sdk-linux_x86/tools/
then write this:
sudo chmod 755 mksdcard
mksdcard 1024M ./sdcard.iso
sudo android create avd -n my_avd -t 1 -c 1024M
it should work :)
If you are using Kali, Debian Jessie (or Ubuntu 13.10+), try
sudo apt-get install lib32stdc++6
instead of the ia32-libs mentioned above.
sudo apt-get install lib32stdc++6
After this you might get following errors
Cannot launch AVD in emulator.
Output:
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 49
Current serial number in output stream: 48
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: GLXBadContext
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 49
Current serial number in output stream: 48
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
emulator: WARNING: VM heap size set below hardware specified minimum of 228MB
X Error of failed request: BadValue (integer parameter out of range for operation)
emulator: WARNING: Setting VM heap size to 384MB
Major opcode of failed request: 154 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 33
Current serial number in output stream: 34
QObject::~QObject: Timers cannot be stopped from another thread
Use these 3 commands to solve those
mv ~/Android/Sdk/tools/lib64/libstdc++/libstdc++.so.6{,.bak}
mv ~/Android/Sdk/tools/lib64/libstdc++/libstdc++.so.6.0.18{,.bak}
ln -s /usr/lib/libstdc++.so ~/Android/Sdk/tools/lib64/libstdc++/**
Also had this problem and after installing the i386 package I was able to create a SD-card for my Android emulator I had to do two steps
sudo apt-get update
sudo apt-get install ia32-libs
After this was finished, I was able to create an emulator with a SD-card attached
I had a different problem: platform-tools was in my path but tools was not. So, everything worked except that the SDCard image was not created. There was no notice of this when I created the avd in eclipse and the virtual device was created with a really small sd card causing it to constantly throw the media not available error on app install.
I am running Fedora 64 and had the same problem. The information on this page helped me.
http://iexcel.wordpress.com/2010/01/25/ia32-libs-for-android-sdk-on-fedora-12-x86_64/
On debian testing, when i tried to run ./tools/mksdcards, i received the error:
error while loading shared libraries: libstdc++.so.6:
cannot open shared object file: No such file or directory
Installing lib32stdc++6 resolves the problem, and was possible to create the avd.
I had a different problem using 32bit Ubuntu. When i tried to run mksdcard by hand, I was getting a file not found error.
The problem was open-jre/jdk. I installed oracle java and the problem was fixed. Unfortunately you can no longer install oracle java through apt/synaptic and have to jump through some extra hoops:
https://github.com/flexiondotorg/oab-java6
MyOS is Oracle Unbreakable Linux 6 - to solve this issue I had to install libstdc++-4.4.6-3.el6.i686 package.
I had the same problem. After troubleshooting, I came to know that, it was because of my Windows is 32bit and my mksdcard is compatible with 64 bit only. Then I just copied a mksdcard of 32 bit to tools folder, and deleted the older one. It solved my problem.
After a lot of installing and not getting any result I found this and it worked.
This happens because some executable files in sdk/tools
cannot be executed. Go to your Android Studio and Android SDK folders and make all directory and files executable by this command:
chmod +x -R *
Try moving the android sdk folder to home folder. It works.
참고URL : https://stackoverflow.com/questions/3878445/ubuntu-error-failed-to-create-the-sd-card
'code' 카테고리의 다른 글
WPF 바인딩 StringFormat 짧은 날짜 문자열 (0) | 2020.09.20 |
---|---|
C #에서 개체를 바이트 배열로 변환하는 방법 (0) | 2020.09.20 |
CHM 파일을 열면 "웹 페이지 탐색이 취소되었습니다."가 생성됩니다. (0) | 2020.09.20 |
Vim에서 2 칸 들여 쓰기를 4 칸 들여 쓰기로 변경 (0) | 2020.09.20 |
선택 옵션에서 체크 박스를 사용하는 방법 (0) | 2020.09.20 |