Google Firebase Service BuildAction not found

QQQ 1 Reputation point
2021-07-08T07:01:04.42+00:00

i don't see buildaction option in properties list. instead I added it directly to the .csproj file. when i run the app it crashes right away

.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,141 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. cristopheB 551 Reputation points
    2021-07-08T07:54:59.03+00:00

    Hello,
    Try to install
    Xamarin.GooglePlayServices.Basement Nuget into your Android project
    Close solution and open again
    Normally it will be work

    0 comments No comments

  2. JarvanZhang 23,951 Reputation points
    2021-07-09T06:51:33.027+00:00

    Hello @QQQ ,​

    Welcome to our Microsoft Q&A platform!

    The GoogleServicesJson's build type comes from the Xamarin.GooglePlayServices.Basement.targets. If your do not have installed the Xamarin.GooglePlayServices.Basement package in your project, the build action will not be available. Please install the nuget and then GoogleServicesJson will be available as a build type in your project.

    Here is a detailed explanation, please check: https://stackoverflow.com/a/42678503/11083277

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.