Cannot read property firebase of undefined error

I done what the plugin said, but i am getting this error...

I am only calling firebase plugin like these:

var firebasePlugin = require("nativescript-plugin-firebase")

If I delete the line, there is no error.

Here is the virtual device screen. enter image description here

Last logs enter image description here


ANSWERS:


tns run android

command solved my problem.

Thanks @MarekMaszay



 MORE:


 ? Accessing element height in NativeScript
 ? Nativescript canvas
 ? Is there localstorage in nativescript?
 ? $index not working in Nativescript
 ? In NativeScript with Angular2, how can I get an interface element the id?
 ? In NativeScript with Angular2, how can I get an interface element the id?
 ? In NativeScript with Angular2, how can I get an interface element the id?
 ? In NativeScript with Angular2 get element value
 ? How to show and bind base64 string to Image as a source in Nativescript?
 ? NativeScript Slider step