I see a lot of messages about writing to the SD card, but I think that my problem is different. I cannot create an SD card while creating an AVD.
At first I tried using the Android SDK and AVD Manager by selecting
Name : my_avd
Goal : Android 2.2 - API Level 8
SD card : size: 1024 MiB
Skin : built-in: default (HVGA)
Hardware : property: abstract LCD density, value: 160
This pops up a message box:
"Result of creating AVD" my_avd ":
Error: Failed to create SD card. "
I tried to repeat the process from the command line, getting 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.
Trying to follow the instructions for using mksdcard was equally futile; I think my main lack of Linux experience may cause me a problem here. When I try to use mksdcard, it simply reports that it cannot find the file or directory. Is the mksdcard tool available for use this way on 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 added the android tools directory to the PATH variable, but I feel that obviously something else is missing for me. Perhaps some access rights?
Trying to run the android command using sudo didn't 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, but to no avail. Any advice would be most valuable. A preliminary warning that I'm a novice Linux user, so even if this seems like an obvious thing to check, I could still skip it.
android linux ubuntu
Alex Pritchard Oct 07 '10 at 3:24 2010-10-07 03:24
source share