我有Google Compute Engine的凭证文件,已将其重命名为key.json。下一步是设置名为GOOGLE_APPLICATION_CREDENTIALS的环境变量。但是提示错误:从环境变量GOOGLE_APPLICATION_CREDENTIALS... path...读取凭据文件时出错。从流中读取凭据时出错,“type”字段未指定。
我想知道如何在Eclipse中设置变量GOOGLE_APPLICATION_CREDENTIALS?
代码示例: httpTransport = GoogleNetHttpTransport.newTrustedTransport(); GoogleCredential credential = GoogleCredential.getApplicationDefault();
我想知道如何在Eclipse中设置变量GOOGLE_APPLICATION_CREDENTIALS?
代码示例: httpTransport = GoogleNetHttpTransport.newTrustedTransport(); GoogleCredential credential = GoogleCredential.getApplicationDefault();