title: NoSuchMethodError in com.google.api.client library
body: <p>I'm trying to use the Google Cloud Storage SDK for Java into my Spring application.</p>
  <p>Using Maven I've added it to my dependencies:</p>
  <pre><code>&lt;dependency&gt;
     &lt;groupId&gt;com.google.cloud&lt;/groupId&gt;
     &lt;artifactId&gt;google-cloud-storage&lt;/artifactId&gt;
     &lt;version&gt;1.31.0&lt;/version&gt;
  &lt;/dependency&gt; 
  </code></pre>
  <p>Then I try to initialize the Storage client with:</p>
  <pre><code> client = StorageOptions.newBuilder()
                      .setCredentials(ServiceAccountCredentials.fromStream(new ClassPathResource(&quot;/my/path/to.json&quot;).getInputStream()))
                      .build()
                      .getService();
  </code></pre>
  <p>but an error occurs</p>
  <pre><code>java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient$Builder.setBatchPath
  </code></pre>
  <p>I've noticed that in my <strong>google-api-client-1.23.0.jar</strong> libray loaded as dependency no setBatchPath was present.</p>
  <p>I've tried to find the issue browsing on web but without fortune.
  I cannot understand which library (and version) I need to install in order to make it works.</p>