Nativescript-angular: Cannot run android emulator

Created on 4 May 2017  Â·  6Comments  Â·  Source: NativeScript/nativescript-angular

After running the install script and trying to launch an android device, I'm getting this output:

$ tns run android --emulator --justlaunch
Copying template files...
  â—  Installing tns-androidInstalling  tns-android
/Users/wolfgang/code/foundateui
└── [email protected]


The plugin [email protected] is already installed
TypeError: Path must be a string. Received undefined

Followed by usage information, and no emulator launches. Any idea what might be wrong here?

Most helpful comment

Can you check if you have dependency to tns-android in your package.json. If you have it - you can safely delete it.

You can also try to clear your node_modules and platforms folders and do a clean build.

All 6 comments

Mac OS 10.12.4, I believe everything else is the latest version. I can get more info if it helps.

maybe a node problem?

Can you check if you have dependency to tns-android in your package.json. If you have it - you can safely delete it.

You can also try to clear your node_modules and platforms folders and do a clean build.

Hi,
I'm having the same issue.
So everithing is fine with IOS but there is no way to see something under andorid emulator.

TypeError: Path must be a string. Received undefined

Any suggestion?

+1

I removed tns-android from my package.json, removed node_modules, removed platforms and re-ran tns run android. Works after that. Thanks!

Was this page helpful?
0 / 5 - 0 ratings