Google cloud platform eclipse中gcp的凭据
我在设置 ServiceOptions.Builder类型中的方法setCredentials(Credentials)不适用于参数(GoogleCredential)Google cloud platform eclipse中gcp的凭据,google-cloud-platform,Google Cloud Platform,我在设置 ServiceOptions.Builder类型中的方法setCredentials(Credentials)不适用于参数(GoogleCredential) 显示创建凭据的代码。您的StorageOptions代码显示正确。问题可能是您创建了错误的凭据类型。您能否确切指定您要实现的目标?你有私钥.json文件吗? Storage storage = StorageOptions.newBuilder() .setCredentials(credentials)
显示创建
凭据的代码。您的StorageOptions
代码显示正确。问题可能是您创建了错误的凭据类型。您能否确切指定您要实现的目标?你有私钥.json文件吗?
Storage storage = StorageOptions.newBuilder()
.setCredentials(credentials)
.build()
.getService();