Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find 'emulator.exe' when trying to test apps

I'm working with KonyOne Studio to build and test apps. The Android SDK is located in C:\Android\adt-bundle-windows-x86_64-20130729\sdk and the emulator is located at C:\Android\adt-bundle-windows-x86_64-20130729\sdk\tools\emulator.exe. When I try to run apps, I get the error:

Windows cannot find 'emulator.exe'. Make sure you typed the name correctly, and then try again.

When I just run the emulator.exe executable, I get a quick cmd screen and it disappears as quick as it appeared. Nothing shows up in my task manager.

I've set the following environment variables:

JAVA_HOME: C:\Java\jdk1.6.0_32
PATH: C:\Java\jdk1.6.0_32;D:\Users\SIMONSJP.GROUPINFRA\AppData\Roaming\npm;
      C:\KonyOne\ImageMagick;C:\apache-ant-1.9.2\bin;C:\Java\jdk1.6.0_32\bin;
      C:\Android\adt-bundle-windows-x86_64-20130729\sdk\platform-tools;

Ofcourse the above is without spaces. I don't understand why the emulator doesn't run. Can anyone figure out why it isn't working?

like image 567
Joetjah Avatar asked Aug 15 '13 13:08

Joetjah


People also ask

Where is the emulator exe?

emulator: Found directory: C:\Program Files (x86)\Android\android-sdk\system-images\android-30\google_apis_playstore\x86\ emulator: emuDirName: 'C:\Program Files (x86)\Android\android-sdk\emulator'

Why app is not showing in emulator?

If an app uses CPU specific native libraries it needs to include one version them for each CPU architecture it plans to support. Therefore if the app you want to install in the emulator only has native libraries for ARM then it can not be executed on an x86 emulator and thus will not be shown in Play Store.

Where is the emulator folder in Android Studio?

The default location of this directory varies by platform: On Windows, it's the %LocalAppData%\Android\Sdk directory. This normally expands to C:\Users\<username>\AppData\Local\Android\Sdk , although it might vary based on your system. On macOS, it's the $HOME/Library/Android/sdk directory.


1 Answers

Your path variable only includes platform-tools. It needs to include the path to the emulator too. Two ways:

  • Copy the emulator.exe to platform-tools
  • add the tools folder to path variable.
like image 149
David Olsson Avatar answered Sep 23 '22 15:09

David Olsson