Ubuntu - Error: Failed to create the SD card.

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Ubuntu - Error: Failed to create the SD card.

Postby apritchard » Thu Oct 07, 2010 2:59 am

Hi everyone,

Apologies if this has been addressed before, but I have struggled to find anyone reporting the same issue. I'm trying to create an AVD in Ubuntu linux 64-bit and seem to be unable to successfully create the SD card in order to finish setting up the AVD.

I initially tried to use the Android SDK and AVD Manager to do this, selecting:
name: my_avd
target: Android 2.2 - API Level 8
SD Card: Size: 1024 MiB
Skin: Built-In: Default (HVGA)
Hardware: Property: Abstracted LCD Density, Value: 160

This pops up a window with the message:
"Result of creating AVD 'my_avd':
Error: Failed to create the SD card."

I tried to repeat the process from the command line, receiving a similar error:

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.

Attempting to follow instructions for using mksdcard was equally unproductive; I think my basic lack of linux experience may be causing me a problem here. When I try to use mksdcard, it just reports that it cannot find the file or directory. Is the mksdcard tool available for use this way in linux?

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've added the android tools directory to my PATH variable, but I feel like there is obviously something else I'm missing. Perhaps some kind of access rights?

Attempting to run the android command with sudo did not seem to help either:

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.

I even tried installing Eclipse and the ADT plugin and running the manager from there to no avail. Any tips would be most appreciated. Advanced warning that I am somewhat of a novice Linux user, so even if it seems like a no-brainer obvious thing to check, I could still have missed it.

Alex
apritchard
Freshman
Freshman
 
Posts: 2
Joined: Thu Oct 07, 2010 2:42 am

Top

Re: Ubuntu - Error: Failed to create the SD card. - SOLVED

Postby apritchard » Fri Oct 08, 2010 2:30 am

All right, I was able to figure out the problem. The short of it is that I was using 64-bit Linux and had not installed the ia32-libs package, so the mksdcard utility was not working correctly. After installing this package, I was able to complete the step of making a virtual device.
apritchard
Freshman
Freshman
 
Posts: 2
Joined: Thu Oct 07, 2010 2:42 am

Re: Ubuntu - Error: Failed to create the SD card.

Postby me.ajay.meher » Fri May 27, 2011 11:38 am

I was having the same problem and
found a better solution for both error code 2 and 13. It has explained everything in detail with step by step guidance.

http://android-eclipse.blogspot.com/201 ... t-run.html

:)
me.ajay.meher
Once Poster
Once Poster
 
Posts: 1
Joined: Fri May 27, 2011 11:28 am

Re: Ubuntu - Error: Failed to create the SD card.

Postby wiliamsmith4444 » Sat Jul 16, 2011 5:57 pm

I couldnt use them... I found the problem that my prob was that my R.java file didn't have the addresses for my audio files.. how do I make sure that they are in there?
wiliamsmith4444
Junior Developer
Junior Developer
 
Posts: 10
Joined: Sat Jul 16, 2011 5:00 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests