我从一个服务帐户生成了一个JSON文件,并将GOOGLE_APPLICATION_CREDENTIALS设置为保存JSON文件的位置。(message);com.google.cloud.translate.TranslateException: Your application has authenticatedusing end user credentials from the Google Cloud SDK or Google<
W/System.err: java.io.IOException: The Application Default Credentials are not available.Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a fileSee https://developers.google.com/accounts
我遵循来启动java客户端演示。我已经有了set 身份验证json文件到环境变量GOOGLE_APPLICATION_CREDENTIALS。Exception in thread "main" com.google.cloud.translate.TranslateException: The request is missing a validAPI key.
at com.google.cloud.translate.spi.v2.HttpTr
); }我已经尝试修改我的变量来指向路径变量GOOGLE_APPLICATION_CREDENTIALSat com.google.cloud.translate.spi.v2.HttpTranslateRpc.translate(HttpTranslateRpc.java:62)
at com.<e