Closed smartfung closed 5 years ago
In my case the problem was resolved when I added auth module to gradle deps: com.google.firebase:firebase-auth:16.2.0
https://firebase.google.com/docs/android/setup#available-libraries
It seems that adding the package is not enough, you also have to add all deps to gradle too. Somehow this information is missing in 'getting started' tutorials
@tautvilas worked for me, thanks!!
+1 Accident this too. Fix it please.
I had the same issue. I solved it by adding firebase-database:
dependencies {
...
implementation "com.google.firebase:firebase-database:16.0.6"
}
All my dependencies:
dependencies {
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From node_modules
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'com.android.support:multidex:1.0.3'
implementation project(':react-native-firebase')
// Firebase dependencies
implementation "com.google.android.gms:play-services-base:16.1.0"
implementation "com.google.firebase:firebase-core:16.0.8"
implementation "com.google.firebase:firebase-firestore:18.2.0"
implementation "com.google.firebase:firebase-database:16.0.6"
}
I had the same issue. I solved it by adding firebase-database:
dependencies { ... implementation "com.google.firebase:firebase-database:16.0.6" }
Yeah ~ worked for me. thanks so much
mine works
same issue. adding auth not working. Any solution ?
Same issue! It still not work for me!!
Same issue! Any solution ?
Same issue here.
having the same issue
Same Issue, But I try to solve this Issue
Please don't just say "same issue", or +1, that's the equivalent of spam to all the people here.
I can't reproduce it. See here: https://github.com/mikehardy/rnfbdemo
There can't be a fix without a reproduction. If someone could post a clean github repo with a reproduction we could see what's wrong.
follow react-native-firebase how to install doc and it will tell you all the steps to install it both on android and ios. it need to do some extra steps to install it
here is a link to documentation ==> https://rnfirebase.io/docs/v5.x.x/installation/android
Issue
I got a error "Exception in Host Object::get:" on android.
I used React-Native 0.59.1.
Project Files
Android
android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
ADD_SOMETHING_HERE
e.g. iOS 10 or Android API 28N/A
N/A
N/A
ADD_SOMETHING_HERE
e.g. Xcode 10, Android Studio 3.2React Native
version:ADD_SOMETHING_HERE
React Native Firebase
library version:ADD_SOMETHING_HERE
Firebase
module(s) you're using that has the issue:TypeScript
?N/A
ExpoKit
?ExpoKit
N/A
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter