Nativescript-cli: `tns run android` does not start the app sometimes after file changes

Created on 27 Feb 2017  路  6Comments  路  Source: NativeScript/nativescript-cli

Scenario:

  1. Open MyApp in some editor (in my case VSCode)
  2. tns run android --path MyApp
  3. Start editing some JS, XML, CSS
  4. After livesync sometimes app does not start automatically (it works if I manual start it)

Will write again when I have more logs or repro steps.

This bug makes CLI tests flaky and we can not rely on them.
This is critical!

bug critical

All 6 comments

yes same problem here tns run android doesn't start emulator after upgrade to 2.5.2 , it was working in 2.5.1 but now not open the app automatically

After livesync sometimes app does not start automatically

@dtopuzov, does this happen when you run tns run android command again, or just by changing and saving a file from the source code?

@Plamen5kov I'm changing files and I have to remove the platform and add it again for the changes to get to the device.
And I have to start the app manually on the emulator

@nicoabie the PR I've linked should fix your problem.

Have you ever tried to run with emulator -avd. Because i realized i did not set the ANDROID_SDK_ROOT enviroment.Emulator started to work automatically after that

Was this page helpful?
0 / 5 - 0 ratings