Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to launch android emulator

When I run my hello world application, the android emulator fails to launch.Even when i am creating a new emulator it fails to launch giving me the following error.

[2011-08-09 17:03:10 - Emulator] invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
[2011-08-09 17:03:10 - Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
[2011-08-09 17:03:10 - Emulator] please use -help for more information
like image 370
chetan Avatar asked Dec 27 '22 15:12

chetan


2 Answers

First of all you need to check are you in correct folder?

$...local\Android\sdk\tools\emulator -list-avds

If so it will show you list of emulators that you have in your Android studio you are on right track Last part for launching an emulator

local\Android\sdk\tools\emulator -avd Nexus_5X(name of your emulator you want to open) 
like image 98
Faakhir Avatar answered Jan 03 '23 17:01

Faakhir


The problem is, that you have specified your SDK in a file what has space, in its name For example: Android SDK You need to change it to something what hasn't got space in its name.

Hope it helps.

Or if you specified it in the Program Files use it: Progra~1 instead of Program Files.

like image 32
Zwiebel Avatar answered Jan 03 '23 19:01

Zwiebel