Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App crashes on startup with the sample code w/ Xamarin forms

See original GitHub issue
Java.Lang.IllegalStateException: Default FirebaseApp is not initialized in this process
Make sure to call FirebaseApp.initializeApp(Context) first.

This is the error that is thrown. I’ve looked into the previously solved issue on here that had the same problem, but the solution listed there doesn’t work at all on my side (clean/rebuild as well as adding the target entry to csproj).

Here is a gist of the exception stack trace.

Bug Information

Version Number of Plugin: v.1.0.4 Device Tested On: Galaxy S7 Simulator Tested On: n/a Version of VS: 2017 latest Version of Xamarin: Versions of other things you are using: X.Forms version

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

rdelrosariocommented, Aug 17, 2017

Also check the build action for your google play services json should be as the documentation specifies

joshuatantonflynncommented, Jun 4, 2018

@rdelrosario Currently on 60.1142.1 Still having this issue. yes the json build action is set to GoogleServicesJson. Yes I’ve tried the clean and rebuild and obj/bin deletion. I’ve even added that Target entry manually into the csproj file. Still, everytime I try to get my token it has this error. FirebaseApp.InitializeApp(this) always returns null. Haven’t tried yet on a non-Samsung phone but working on Samsung phones is an absolute requirement for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xamarin application crashes on startup on release mode
as I said in the title, my application simply works fine in debug mode, but when I extract a release mode apk it...
Read more >
app crash on start-up and a new created app is failing on ...
my existing app crash on app start-up with no errors, on newly created Xamarin. Forms the deployment is failing but build succeed. i...
Read more >
App Crash Details Without Hassle with App Center ... - YouTube
Forms App 04:39 - Initialize App Center SDK in Our App 07:00 - Handle ... #appcenter #diagnostics #crashreporting # xamarin # xamarinforms.
Read more >
VS 16.7 Xamarin Android crash on start up in debug
Just upgraded to VS 2019 16.7 and Xamarin Android project that was running fine yesterday is now crashing on startup when Debug build ......
Read more >
Xamarin Forms App crashing at startup on iOS
Coding example for the question Xamarin Forms App crashing at startup on iOS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found