Giter Site home page Giter Site logo

Comments (16)

441N143G avatar 441N143G commented on May 23, 2024 5

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)

from nativescript-plugin-firebase.

mi6crazyheart avatar mi6crazyheart commented on May 23, 2024 1

@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.

from nativescript-plugin-firebase.

EddyVerbruggen avatar EddyVerbruggen commented on May 23, 2024 1

Added a note to the readme, thx! 👍

from nativescript-plugin-firebase.

EddyVerbruggen avatar EddyVerbruggen commented on May 23, 2024

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.

from nativescript-plugin-firebase.

mi6crazyheart avatar mi6crazyheart commented on May 23, 2024

@EddyVerbruggen : Thanks for your quick reply. But, after running tns platform remove android && tns platform add android command now I'm getting following error.

firebase-error-cropped

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.

from nativescript-plugin-firebase.

EddyVerbruggen avatar EddyVerbruggen commented on May 23, 2024

Never seen this one. Perhaps others reading this have an idea?

from nativescript-plugin-firebase.

mi6crazyheart avatar mi6crazyheart commented on May 23, 2024

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.

firebase-error-1

from nativescript-plugin-firebase.

441N143G avatar 441N143G commented on May 23, 2024

*and rebuild project

from nativescript-plugin-firebase.

441N143G avatar 441N143G commented on May 23, 2024

you are welcome :-) about multiDex: https://developer.android.com/studio/build/multidex.html

from nativescript-plugin-firebase.

mi6crazyheart avatar mi6crazyheart commented on May 23, 2024

Have you also added that multiDexEnabled true in your test app & Shall this thing should be mentioned in Plugin doc ?

from nativescript-plugin-firebase.

EddyVerbruggen avatar EddyVerbruggen commented on May 23, 2024

NativeScript issue related to this phenomenon: NativeScript/android#344

from nativescript-plugin-firebase.

441N143G avatar 441N143G commented on May 23, 2024

In test app - yes. This is not plugin fail, but if author will put few lines about this issue in readMe - will be great)

from nativescript-plugin-firebase.

mi6crazyheart avatar mi6crazyheart commented on May 23, 2024

All right. Thanks a lot for your support people. I'm closing this issue now.

from nativescript-plugin-firebase.

LakshmiEvana avatar LakshmiEvana commented on May 23, 2024

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\platforms\android\gradlew.bat failed with
exit code 1
Help me please!

from nativescript-plugin-firebase.

dameety avatar dameety commented on May 23, 2024

Facing this issue too, right now, but this solution does not work for me. removing and adding platform android, enabling multidex.

from nativescript-plugin-firebase.

lumayara avatar lumayara commented on May 23, 2024

I am facing the same issue. I already added the reference path to firebase.d.ts on references.d.ts, also already added :

multiDexEnabled = true

on app.graddle and still get

JS: Error in firebase.init: TypeError: Cannot read property 'getInstance' of undefined

from nativescript-plugin-firebase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.