Search code examples
genymotionnativescript

Spawn Player ENOENT error while emulate genymotion


I'm not sure this is NativeScript or GenyMotion error.

tns emulate android --geny "devices name" and I got this error Spawn player ENOENT.

Any idea how to fix this?


Solution

  • There are a couple reasons you can this error.

    1. First make sure you have https://www.genymotion.com/ Installed, if you don't have it installed then the --geny won't work and fail.

    2. Make sure that you can start that specific VM from inside GenyMotion.

    3. On Windows, you need to make sure that

      C:\Program Files\Genymobile\Genymotion

    is in your path. (Assuming you installed GenyMotion to the default path.) On Linux & MacOS I believe it will already be in your path.

    One way to verify if GenyMotion is in your path on any of the Operating systems is to type:

    genyshell

    At a command prompt/shell; if it loads then you can type "quit" to exit. But this will verify that all the GenyMotion support files can be ran from anywhere on your command line.