Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run NativeScript app in Windows using Visual Studio Emulator?

Tags:

nativescript

How to run NativeScript app in Windows using Visual Studio Emulator? trying to get this project:

https://github.com/avatsaev/nativescript-master-detail-angular2

to run in Windows 10 64bit visual studio emulator but always android emulator is launching instead when running:

this is my adb devices:

List of devices attached
169.254.138.177:5555    device

tns livesync android --emulator --watch

also tried

tns livesync 169.254.138.177:5555 --emulator --watch

no luck!

regards

Sean

like image 454
born2net Avatar asked Feb 06 '23 22:02

born2net


2 Answers

found the answer

 tns run android --device 169.254.138.177:5555

and you get the device from:

adb devices

enjoy!

like image 176
born2net Avatar answered Feb 08 '23 10:02

born2net


If the emulator is already running and visible with adb devices - you can just run tns run android. This will build and deploy on all visible devices. Same is valid for tns livesync android.

like image 30
Alexander Vakrilov Avatar answered Feb 08 '23 12:02

Alexander Vakrilov