我已经有了set 身份验证json文件到环境变量GOOGLE_APPLICATION_CREDENTIALS。但是,当我运行java示例代码时,我得到了translateException。Exception in thread "main" com.google.cloud.translate.TranslateException: The request is missing a validAPI key.
at com.google.cloud.tran
当我试图使用G转换API构建一个应用程序时。我已经启用了GCP控制台中的每个身份验证。错误:
java.lang.RuntimeException: Unable to start activity ComponentInfo{testing.com.login/testing.com.login.MainActivity}: com.google.cloud.translate.TranslateException: The request is missing a valid API