Google Firebase Service BuildAction not found

QQQ 1 Reputation point

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,117 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. cristopheB 551 Reputation points

    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,936 Reputation points

    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:

    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.