昨晚我想开始一个新项目,但我遇到一个奇怪的错误!如果有人使用过Translation API,请帮忙!

错误提示是: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

我的代码也是Here .

private void Form1_Load(object sender, EventArgs e)
    {
        TranslationClient cli = TranslationClient.Create();
        var word = cli.TranslateText("hello","fa");
        MessageBox.Show(word.TranslatedText.ToString());
    }