CMA
CMA

Reputation: 2818

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 mark as "A valid Android Virtual Device".

How should I solve this error?


UPDATE:

i just solved this problem.

See answer below.

Upvotes: 0

Views: 1785

Answers (4)

Chalpat
Chalpat

Reputation: 76

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.

Upvotes: 0

CMA
CMA

Reputation: 2818

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".

Upvotes: 1

ilango j
ilango j

Reputation: 6037

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

Upvotes: 1

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"

Upvotes: 0

Related Questions