-
-
Notifications
You must be signed in to change notification settings - Fork 197
App not launching in device using command "tns run android" #2092
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
Comments
Hello @sunny061 The thing is that when you changed your nativescript id in package.json the app is building with the new id and is deployed on the emulator with that id. However, in the same time the NativeScript CLI is trying to launch the app with the id located in app.gradle.(which at this time is still the old one.) Steps to resolve:
then go to app/App_Resources/Android/app.gradle and change applicationId value
Then remove the platforms folder, rebuild and your app will be deployed and launched successfully on your emulator/device. |
Just tried it and it works as expected. Thanks |
i have similar issue however applicationId and id is matching. i am using mac. i am able to
when I stop it then it showed me following lines at terminal
|
@kush99993s did u find a solution to your problem? The same thing is happening with me |
I have similar issue as well. App is launch first time and I closed app and want to start again then it shows error like 'WARNING: The Application identifier is different from the one inside 'package.js Even I didn't change anything |
Thanks |
Thanks @NickIliev for your great answer! A little update two years later With tns-android version 5.1.0, if we want to update the application id of our nativescript project, we have to change these values : package.json
App_Resources/Android/app.gradle
App_Resources/Android/settings.json Optional (only if exists)
Then remove platforms folder and execute |
This solved the problem for me also. Thank you |
Hi,
I am running "tns run android" and seeing the following in the terminal logs but the app doesn't launch.
Steps I took to hit this issue:
I have tried uninstalling the original application manually from the device but it still shows the log that its successfully deployed but doesn't launch. Did I do something wrong? or is that not the right way to change the package name? Any help would be appreciated.
I am using nativescript version 2.2.1, developing on Mac OSX for Android.
Thanks
The text was updated successfully, but these errors were encountered: