How do I use the Android emulator? I made an AVD device in Eclipse, now im trying to launch it via command prompt. Android is the AVD name. I have also installed all the files for Android 4.2.2 in SDK manager. This is what I type into cmd: emulator -avd <android> -gpu on
. It spits out, system cannot find the file specified.
-
3By the way, this question is only marginally on topic for this site. This site is intended for questions about using Android devices. Questions about developing for Android belong on Stack Overflow. The emulator is a bit of a gray area, since it's usually used by developers, but non-developers could have some use for it too.– Trebor RudeCommented Apr 26, 2013 at 5:14
3 Answers
You shouldn't have <
angle brackets>
around the filename. They're used in examples to show you that you need to change that part of the command (to the AVD name you chose), and you shouldn't type them in.
-
Also a good possibility for causing the stated problem. I'm so used to that convention I didn't even consider this answer. Commented Apr 26, 2013 at 11:26
-
To be fair, I didn't think of your answer either until I read it :-) Commented Apr 26, 2013 at 11:31
It sounds like the directory that emulator
resides in isn't in your PATH. The path isn't updated by the installation of the SDK.
You need to install AVD Manager inorder to run emulator...check for those and try running using the menu Tools|Android|AVD Manager after installing the necessary files and starting them...Wish u have success