安卓创建Windows命令提示符AVD大小 [英] Android create avd size on windows command prompt
问题描述
我开始与Android的发展,我不知道什么是错的这个命令行:
C:\ Documents和Settings \ Gabriel.Esquivel.android \ AVD>的Android创建AVD -n EV
o4G -t 9 -C 8000MB -s 480-800
有效的皮肤:WVGA854,WQVGA400,HVGA(默认),WQVGA432,WVGA800,QVGA
错误:480-800不是一个有效的皮肤名称或大小(NNNxMMM)
我想创建以下AVDS的http://mobile.tutsplus.com/tutorials/android/common-android-virtual-device-configurations/,但它不会从Android的SDK管理器中工作。似乎有错误,会引发以下错误SD卡大小必须至少为9MB。所以,我决定从命令提示符来尝试,因为我阅读其他博客,它将使我创造AVDS没有得到比9MB的错误少,SDS
现在的问题是,它不会采取具体尺寸为肌肤 -s宽度高度
的Android创建AVD -n EV o4G -t 9 -c 8000M
从我隐约的阅读源$ C $ C召回,只能创建一个SD卡在大小为999MB。它纯粹的字符串(例如3位)的长度的限制。
不过,你可以先创建一个小的SD卡(比如9MB)仿真器,然后将它与一个较大的使用的 mksdcard
命令。
例如,本应更换9MB SD卡的上面模拟器:
mksdcard 8192MB%USERPROFILE%\。安卓\ AVD \ Evo4G.avd \ sdcard.img
其实,重新阅读你的问题,我不知道你是否有问题的SD卡大小?
如果你想的没有的SD卡,你可以简单地离开了 -S
参数的Android创建AVD
。
总之,对于定制的屏幕尺寸,你想要的格式宽x
,例如: 480×800
。这就是错误信息是告诉你( NNNxMMM
)。
但由于480×800的标准分辨率,你可以使用 WVGA800
。
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
android create avd -n Ev o4G -t 9 -c 8000M
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 to android 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
.
这篇关于安卓创建Windows命令提示符AVD大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!