开发者

Android Emulator: invalid command-line parameter

When I launch my emulator, I get the following error:

invalid command-line parameter: Android Development\android-sdk_r12-windows\android-sdk-windows\tools/emulator-arm.exe.

Hint: use '@foo' to launch a virtual device named 'foo'. please use -help for more information

But my emulator is mar开发者_C百科k as "A valid Android Virtual Device".

How should I solve this error?


UPDATE:

i just solved this problem.

See answer below.


check your sdk path. Make sure the path should not have an empty space like ..../my Sdk/sdk-windos/


It's my mistake that I named my folder "Android Development" where I have put my sdk. I realized that having a path that have an empty space between letters or words, like in my case "Android Development" have caused this error.

I just transferred my android sdk to another folder and make sure that i named it properly(without blank space), for example "Android_Development".


Remove the blank space from your SDK path by renaming the path(if blank space is there)

or give proper command

emulator -avd "avdname"

note: AVD must exist with name "avdname"


There is one more aspect to this problem. If RAM size is more than the AVD can get from system, the same error is thrown.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜