App crashes on startup with the sample code w/ Xamarin forms
See original GitHub issueJava.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: 4.5.0.486 Versions of other things you are using: X.Forms version 2.3.4.267
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also check the build action for your google play services json should be as the documentation specifies
@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.