Comments (16)
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.
@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.
Added a note to the readme, thx! 👍
from nativescript-plugin-firebase.
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.
@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.
from nativescript-plugin-firebase.
Never seen this one. Perhaps others reading this have an idea?
from nativescript-plugin-firebase.
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.
from nativescript-plugin-firebase.
*and rebuild project
from nativescript-plugin-firebase.
you are welcome :-) about multiDex: https://developer.android.com/studio/build/multidex.html
from nativescript-plugin-firebase.
Have you also added that multiDexEnabled true
in your test app & Shall this thing should be mentioned in Plugin doc ?
from nativescript-plugin-firebase.
NativeScript issue related to this phenomenon: NativeScript/android#344
from nativescript-plugin-firebase.
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.
All right. Thanks a lot for your support people. I'm closing this issue now.
from nativescript-plugin-firebase.
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.
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.
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)
- M1 Issue - FirebaseSDK HOT 4
- Several "session_start" event are created on iOS 15 HOT 1
- ERROR TypeError: firebase.init is not a function.
- AdMob error: TypeError: Cannot set property 'resolve' of undefined
- Class constructor ContentView cannot be invoked without 'new'
- Android App Not working with NS 8.2. HOT 42
- A problem occurred configuring root project 'firebase'.
- microsoft login
- Android 12 background notification led to crash (PendingIntent) HOT 6
- Unable to run new deployment HOT 1
- ion
- Error trying to install @nativescript/firebase
- barcode scanning issue - iPhone 13 Pro and iPhone 13 Pro max
- Cannot read property 'ads' of undefined on NativeScript 8.2.3 HOT 1
- Plugin with id 'com.google.gms.google-services' not found. HOT 13
- SetValue of type Date Error on iOS
- Barcode Scanning issue on native script 8 with native camera control
- Mark this repository as deprecated HOT 1
- Firebase Authentication functions are giving error "No reference found.
- Firebase Messaging crash issue in Android 13 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-plugin-firebase.