jdennoh
jdennoh

Reputation: 43

Xamarin Android FirebaseDatabase null pointer exception

I am having an issue in my Xamarin Android project, where I'm getting a NullPointerException: 'Firebase Database component is not present'. I have recently picked up on Xamarin Android hence my knowledge is a bit limited.

The following image is a code snippet from a static Helper class, called in an EventListener class.

Any help regarding this issue? Also all dependencies are upto date.

enter image description here

Upvotes: 0

Views: 78

Answers (2)

jdennoh
jdennoh

Reputation: 43

So after long search, I just decided to update my Visual Studio and android SDK, and the issue was no more

Upvotes: 1

therock24
therock24

Reputation: 159

Seems like Google has changed the SDK and you need to add some things to AndroidManifest.xml. Check this SO answer for the lines you need to add. Credit to silverFoxA for the solution.

Upvotes: 0

Related Questions