-
Notifications
You must be signed in to change notification settings - Fork 48
Dependency on firebase_ui makes app crash on startup #6
Comments
Hey There @aberent, I had the same problem as you - added the firebase_ui dependency to my pubspec and Boom! the example flutter app broke. After scratching about on the 'net, I found an implementation guide for android that suggests adding additional meta-data to the AndroidManifest.xml file so it looks something like this:
an additional res/strings.xml file needs to be created with this in:
Obviously, this doesn't answer the original question but does treat the symptom. You will see lots of errors in your console that look like this : But at least your app will run. Hope this helps! |
Thanks for this. I was having this issue and I can run my app now. |
When I tried to use firebase_ui my Android app started to crash on startup. Having removed all the firebase_ui code from the app it still crashed on startup. On further investigation I discovered it crashed if, and only if, firebase_ui was included in the dependencies in pubspec.yaml.
The error in the logcat is:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.xxx_dummy/com.xxx.xxx_dummy.MainActivity}: The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.
Why does adding firebase_ui (unused) to the dependencies require me to initialise FacebookSdk?
The text was updated successfully, but these errors were encountered: