Edit: tns run android
works on android-studio ide but not on vscode. I got it running in android-studio by clicking the configure
in the picture below:
I'm new to nativescript and android studio scene and configuring things out is really a hell of an experience, I got this existing project that I got running yesterday and when I try to run it again today with tns run android
it now don't see the emulator that I have installed and the same emulator it used to run just yesterday. Here are the details of my config:
Path and Environment configuration:
Now if I run tns device android --available-devices
this show up:
And it still insist that it cannot find any devices when it just found one!
Running tns-devices
can't find it as well:
It also says All is good when I run tns doctor
:
So my question would be, what am I missing here? Is it a missing package? Is it a wrong android configuration? Do I have to reinstall android studio from the start (Already did this twice!)
What worked for me:
tns run android
on vscode.and it just worked. Also, this might help you as well.