3

When I'm trying to launch my emulator, I'm getting this type of error message in my Event log:

19:26:47 ProcessNotCreatedException: Error launching emulator: Cannot run program "C:\Users\Tadas\AppData\Local\Android\sdk\tools\emulator.exe": CreateProcess error=2, The system cannot find the file specified

Why this problem occured?

Tal Avissar
  • 10,088
  • 6
  • 45
  • 70
Tadas
  • 166
  • 2
  • 12
  • Well, "The system cannot find the file specified" seems obvious... Try opening a file browser and checking that location – OneCricketeer May 07 '16 at 16:35
  • I have already checked the location, there is an emulator file called emulator -x86 and lib folder – Tadas May 07 '16 at 16:37
  • If you type `dir C:\Users\Tadas\AppData\Local\Android\sdk\tools\emulator.exe` in the command console, what does that show you? – Elye May 07 '16 at 16:38
  • Clearly your file is not there anymore. Which folder did you find the emulator -x86? – Elye May 07 '16 at 16:51
  • C:\Users\Tadas\AppData\Local\Android\sdk\tools In this one folder i found emulator -x86 – Tadas May 07 '16 at 16:57
  • Looks like your emulator.exe has been removed. You need to reinstall it. Consider follow my recommended steps below. – Elye May 07 '16 at 17:02
  • check link : http://stackoverflow.com/questions/33417842/avd-not-running – Ahmad Aghazadeh May 07 '16 at 18:32

3 Answers3

2

Firstly find that if you file is there or not by running the below in the Command Console.

dir C:\Users\Tadas\AppData\Local\Android\sdk\tools\emulator.exe

If you don't find it there, that means the file has been removed. Then you might want to locate where your emulator is.

If you find it else where, go to Android Studio->File->Project Structure->SDK Location to enter the new path (note include till where the sdk directory, without the tools directory shown).

If you can't find it else where. Then you might need to reinstall it. Go to Android Studio->Tools->Android->SDK Manager->SDK Tool tab to install the needed emulator.

Elye
  • 53,639
  • 54
  • 212
  • 474
  • Thank You. I will inform you after I reinstall it. – Tadas May 07 '16 at 18:34
  • Im having new Problem: – Tadas May 07 '16 at 21:20
  • Cannot launch AVD in emulator. Output: emulator: WARNING: VM heap size set below hardware specified minimum of 128MB emulator: WARNING: Setting VM heap size to 256MB emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAXM must be updated (version 1.1.1 < 6.0.1). – Tadas May 07 '16 at 21:20
  • Im getting this error when im launching the emulator. HAXM is updated, atleast SDK tool section showing like that. – Tadas May 07 '16 at 21:22
  • Perhaps you could reinstall the HAXM using the same step above. – Elye May 07 '16 at 23:45
1

Try this. Two items to check, a corrupted emulator.exe, and your pc is not able to load it due to low memory.

1

You may not missing the only emulator.exe but the whole tools folder. So lookup for tools folder inside SDK dir. If it's missing find another SDK and copy it's tools folder into you original SDK folder.

user2881604
  • 2,330
  • 3
  • 21
  • 38