You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom title on Android fails with exception #2372
I have tested the described scenario but was not able to reproduce it.
Here are the steps I have followed:
create new NativeScript+Angular app with tns create myApp --ng
paste the action bar code in app.component.ts template
run the app with tns livesync android --emulator --watch
At this point, the app is build successfully on Genymotion emulator Nexus 5 - 6.0.0 (API 23)
Perhaps another part of your app code is causing this behaviour - please share more information in order
to able to reproduce this error (even better: an extended sample code that is throwing the error)
Hi @NickIliev: Initially I thought so, that may be another part of my code generating problem. To verify that I created a fresh app, and just pasted above code, and same problem. Also to be very sure, I commented out above code and added a and then it works.
Not sure if my way of upgrading tns-core-modules was correct or not. What I did is, changed "tns-core-modules": "2.1.0" on package.json and then restarted the app tns livesync android --emulator --watch. I have checked the node_modules has tns-core-modules version 2.1.0.
The safer path is to delete node_modules, platforms, lib folders then tns run android.
We have newer android runtime template and newer tns-core-module-widgets that must all update in order to work correctly.
Activity
NickIliev commentedon Jun 27, 2016
Hello @jahidshohel,
I have tested the described scenario but was not able to reproduce it.
Here are the steps I have followed:
tns create myApp --ngtns livesync android --emulator --watchAt this point, the app is build successfully on Genymotion emulator Nexus 5 - 6.0.0 (API 23)
Perhaps another part of your app code is causing this behaviour - please share more information in order
to able to reproduce this error (even better: an extended sample code that is throwing the error)
jahidshohel commentedon Jun 27, 2016
Hi @NickIliev: Initially I thought so, that may be another part of my code generating problem. To verify that I created a fresh app, and just pasted above code, and same problem. Also to be very sure, I commented out above code and added a and then it works.
I will share my code later today.
NickIliev commentedon Jun 30, 2016
@jahidshohel were you able to resolve your problem!?
If not let me know where I can find your sample code to reproduce it.
hshristov commentedon Jun 30, 2016
@jahidshohel This should be fixed in 2.1.0
jahidshohel commentedon Jun 30, 2016
@hshristov I just upgraded to 2.1.0, and the problem still exists. So I think you should reopen this issue.
hshristov commentedon Jul 1, 2016
@jahidshohel Please make sure you have upgraded tns-core-modules to 2.1.0
jahidshohel commentedon Jul 1, 2016
@hshristov : After upgrading I get this error.
Not sure if my way of upgrading
tns-core-moduleswas correct or not. What I did is, changed"tns-core-modules": "2.1.0"onpackage.jsonand then restarted the apptns livesync android --emulator --watch. I have checked thenode_moduleshastns-core-modulesversion2.1.0.jahidshohel commentedon Jul 1, 2016
Here is my
package.json(renamed to .txt otherwise can't upload file)package.txt
hshristov commentedon Jul 4, 2016
The safer path is to delete node_modules, platforms, lib folders then
tns run android.We have newer android runtime template and newer tns-core-module-widgets that must all update in order to work correctly.
lock commentedon Aug 29, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.