How Can I Set The Environment Variable Google_application_credentials?
I know this type of question has been asked before and i have gone through this but still facing this issue. I was using this example . But while i run my code i got following exce
Solution 1:
From the error
java.io.IOException: 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.
You may need to add this in the environment variable path GOOGLE_APPLICATION_CREDENTIALS=path/to/your/service_accont_key_file.json
. And should get the json file from here https://cloud.google.com/docs/authentication/getting-started . Also if you don't know how to set environment variable path you can check this https://www.computerhope.com/issues/ch000549.htm
Post a Comment for "How Can I Set The Environment Variable Google_application_credentials?"