Getting Exception Using Firebase in Xamarin Android

后端 未结 4 1374
半阙折子戏
半阙折子戏 2020-12-11 04:28
Java.Lang.IllegalStateException: Default FirebaseApp is not initialized in this process TestChartApp.TestChartApp. Make sure to call FirebaseApp.initializeApp(Contex         


        
4条回答
  •  春和景丽
    2020-12-11 05:01

    The resolution for me was toggling the BuildAction for the google-services.json to GoogleServicesJson.

    Even though the google-services.json properties showed BuildAction set to GoogleServicesJson, I was still having the error "Default FirebaseApp is not initialized in this process Make sure to call FirebaseApp.initializeApp(Context) first".

    I was able to resolve this issue by setting BuildAction to "None" then setting it back to "GoogleServicesJson". When I got latest version from source control the BuildAction must not have carried over to my local copy (although it showed as such).

提交回复
热议问题