NoSuchMethodError: optionsBuilder.build().getService() in Google Cloud Storage
问题 I am trying to connect to google bucket to upload a file. StorageOptions.Builder optionsBuilder = StorageOptions.newBuilder(); optionsBuilder.setCredentials(GoogleCredentials.getApplicationDefault()); Storage storage = optionsBuilder.build().getService(); I have provided service account in environment variables and when i looked into optionsBuilder.build() the credentials are added correctly including projectId, credentials etc. but service property is showing null. its giving error for