必须定义环境变量GOOGLE_APPLICATION_CREDENTIALS,指向定义凭据的文件

时间:2018-02-02 10:15:11

标签: android google-cloud-platform google-speech-api

我在Android中使用Google语音客户端库,参考链接为: - https://cloud.google.com/speech/docs/reference/libraries#client-libraries-install-java

I have also executed this command(export GOOGLE_APPLICATION_CREDENTIALS="/Users/Downloads/service-account-file.json") in my Mac os

After executing the whole code I am getting this error -->  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.

0 个答案:

没有答案