Skip to content

(Android) CLI not refreshing app #2970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lukeramsden opened this issue Jul 12, 2017 · 4 comments
Closed

(Android) CLI not refreshing app #2970

lukeramsden opened this issue Jul 12, 2017 · 4 comments

Comments

@lukeramsden
Copy link

Running tns run android --emulator builds the app fine, opens the emulator, installs, but then doesn't open the app. Plus, when I make a change, it says it refreshes, kills the app, but when I open the app through the menu on the emulator it hasn't changed

Node version 6.11.1
NativeScript version 3.1.2

┌──────────────────┬─────────────────┬────────────────┬─────────────┐
│ Component        │ Current version │ Latest version │ Information │
│ nativescript     │ 3.1.2           │ 3.1.2          │ Up to date  │
│ tns-core-modules │ 3.1.0           │ 3.1.0          │ Up to date  │
│ tns-android      │ 3.1.1           │ 3.1.1          │ Up to date  │
│ tns-ios          │ 3.1.0           │ 3.1.0          │ Up to date  │
└──────────────────┴─────────────────┴────────────────┴─────────────┘
@lukeramsden
Copy link
Author

lukeramsden commented Jul 12, 2017

I have to run tns run android --emulator --clean --no-watch to get the changes to show up.

@dtopuzov
Copy link
Contributor

dtopuzov commented Jul 13, 2017

Hi @lukeramsden

It looks like #2825

May be you changed application bundle identifier in your package.json?

Can you please check if ids in <project dir>/package.json and <projectdir>/app/App_Resources/Android/app.gradle match?

@Plamen5kov
Copy link
Contributor

Hi @lukeramsden,
in addition of @dtopuzovs suggestion, you can try running the same application using cli from next. You can install the latest version of cli like so: npm install -g nativescript@next`
Please tell us if the problem still persists after you've tried both suggestions.

@lukeramsden
Copy link
Author

@dtopuzov @Plamen5kov Turns out, the change to app.gradle when I first made the app wasn't committed due to me switching PCs. Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants