0
votes

I am trying to use the newly released Firebase Messaging Nuget for Android Referring to this sample which says:

Make sure you've downloaded your own config (google-services.json file) file and added it to your app project with the 'GoogleServicesJson' build action.

I've downloaded the file & added it to the project, but can't fine the build action of type GoogleServiceJson, what am I missing?

Because of which I am getting a compilation issue at if (GetString(Resource.String.google_app_id) == "YOUR-APP-ID") as the app is not able to find the resource string named google_app_id.

Could someone please help me understand what is missing? Thanks

1
was getting the same error yesterday - clean and rebuild then try - if not visible then restart VS - Dawood Awan
and if there is a parsing excpetion - make sure that google-services.json is encoded in "UTF-8 without BOM" - user1519979

1 Answers

0
votes

After Adding google-service.json file to your project. Select google-service.json file and go to the property of the file. In the Properties pane, set the Build Action to GoogleServicesJson (if the GoogleServicesJson build action is not shown, save and close the Solution, then reopen it.

enter image description here