I'm starting with Android development and I have no idea what's wrong on the this command line:
C:\Documents and Settings\Gabriel.Esquivel.android\avd>android create avd -n Ev
o4G -t 9 -c 8000MB -s 480-800
Valid skins: WVGA854, WQVGA400, HVGA (default), WQVGA432, WVGA800, QVGA
Error: '480-800' is not a valid skin name or size (NNNxMMM)
I am trying to create the following AVDs http://mobile.tutsplus.com/tutorials/android/common-android-virtual-device-configurations/, but it won't work on from Android SDK Manager. There seems to be bug that throws the following error "SD Card size must be at least 9MB". So I have decided to try from command prompt as I read on other blog that it will allow me to create AVDs without getting SDs less than 9MB errors.
Now the problem is that it won't take specific dimensions for the skin -s width-height
From what I vaguely recall of reading the source code, you can only create an SD card up to 999MB in size. It's purely a restriction on the length of the string (i.e. 3 digits).
However, you can first create an emulator with a small SD card (say 9MB), then replace it with a larger one created using the
mksdcard
command.For example, this should replace the 9MB SD card for your above emulator:
mksdcard 8192MB %USERPROFILE%\.android\avd\Evo4G.avd\sdcard.img
Actually, re-reading your question, I'm not sure whether you were having problems with the SD card size?
If you want no SD card, you can simply leave out the
-s
parameter toandroid create avd
.Anyway, for the customised screen size, you want the format
WIDTHxHEIGHT
, e.g.480x800
. That's what the error message is telling you (NNNxMMM
).But since 480x800 is a standard resolution, you can just use
WVGA800
.