HI,
After adding this plugin I'm getting following error when I'm trying to build my app by using tns run android command.
Error -

Doesn't look like a plugin-specific error to me. Can you try removing and adding the Android platform?
tns platform remove android && tns platform add android
If that doesn't help please test on a new project.
@EddyVerbruggen : Thanks for your quick reply. But, after running tns platform remove android && tns platform add android command now I'm getting following error.

I'm new to nativeScript. So, don't know a lot. But, before adding this plugin my app was working properly. Just only after adding this one. I've started getting this error.
Never seen this one. Perhaps others reading this have an idea?
I've no idea what's happening. I have a working copy which I took as a backup before adding this plugin. Which works fine. But, after adding this plugin only.. something is happening & whole build process is failed. Already 2 times I've done this thing & I'm getting same behaviour each time.
I'm also getting following error with above one. May this will do any kind of help.

It seems multiDex error. U can add multiDex(multiDexEnabled true) supprot in your app.gradle. something like this:
android {
defaultConfig {
applicationId "com.mysite.myproj"
generatedDensities = []
multiDexEnabled true
}
....
But u need read what is it. *But I dont remember what u need to do for support android versions below 5.0 - google)
*and rebuild project
@441N143G : Thanks a lot for patience & helping hand. Finally, your above suggestion multiDexEnabled true did the job. Now, previous firebase error Cannot read property 'firebase' of undefined also resolved.
By the way, what's is this multiDex thing? Why was it shown to me? Is anything wrong in my development?
Man, you just made my day. From last 2 days, I was struggling with this & as I'm using NativeScript with AngularJS2 which is still in testing phase today I thought to give up this R&D on NativeScript as long as AngualrJS2 will not production ready.
But, now I can move ahead. By the way, I'm from India. Bug me whenever you'll be at here. I'll buy you a beer.
you are welcome :-) about multiDex: https://developer.android.com/studio/build/multidex.html
Have you also added that multiDexEnabled true in your test app & Shall this thing should be mentioned in Plugin doc ?
NativeScript issue related to this phenomenon: https://github.com/NativeScript/android-runtime/issues/344
In test app - yes. This is not plugin fail, but if author will put few lines about this issue in readMe - will be great)
All right. Thanks a lot for your support people. I'm closing this issue now.
Added a note to the readme, thx! 馃憤
HI,
After adding this plugin I'm getting following error when I'm trying to build my app by using tns run android command.
Error -
Command E:\Native Script\firebasetest3\platformsandroid\gradlew.bat failed with
exit code 1
Help me please!
Facing this issue too, right now, but this solution does not work for me. removing and adding platform android, enabling multidex.
I am facing the same issue. I already added the reference path to firebase.d.ts
multiDexEnabled = true
on app.graddle and still get
JS: Error in firebase.init: TypeError: Cannot read property 'getInstance' of undefined
Most helpful comment
It seems multiDex error. U can add multiDex(multiDexEnabled true) supprot in your app.gradle. something like this:
android {
defaultConfig {
applicationId "com.mysite.myproj"
generatedDensities = []
multiDexEnabled true
}
....
But u need read what is it. *But I dont remember what u need to do for support android versions below 5.0 - google)