title: NoSuchMethodError: optionsBuilder.build().getService() in Google Cloud Storage
body: <p>I am trying to connect to google bucket to upload a file.</p>
  
  <pre><code>StorageOptions.Builder optionsBuilder = StorageOptions.newBuilder();
  
  optionsBuilder.setCredentials(GoogleCredentials.getApplicationDefault());
  
  Storage storage = optionsBuilder.build().getService();
  </code></pre>
  
  <p>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 <code>service</code> property is showing null.</p>
  
  <p>its giving error for <code>optionsBuilder.build().getService()</code> and returns</p>
  
  <p><code>com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient$Builder.setBatchPath(Ljava/lang/String;)Lcom/google/api/client/googleapis/services/AbstractGoogleClient$Builder;</code></p>
  
  <p>Here are the maven dependencies related to google cloud</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;google-cloud-datastore&lt;/artifactId&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
                  &lt;artifactId&gt;guava&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;google-cloud-storage&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Letme know if there is any workaround for it</p>