javaee-esprit / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

java.lang.NoSuchMethodError: com.google.api.client.googleapis.auth.oauth2.GoogleCredential$Builder.setServiceAccountScopes(Ljava/lang/Iterable; #922

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
this works fine on localhost but after deployed to app engine its gives error:
java.lang.NoSuchMethodError: 
com.google.api.client.googleapis.auth.oauth2.GoogleCredential$Builder.setService
AccountScopes(Ljava/lang/Iterable;

Original issue reported on code.google.com by prash...@umstechlab.com on 15 Dec 2014 at 7:58

GoogleCodeExporter commented 9 years ago
Can you give us more information of how you were using this API, e.g., a code 
snippet?

In the meanwhile, you can take a look at the app engine sample for insights.

https://github.com/GoogleCloudPlatform/cloud-storage-docs-xml-api-examples/blob/
master/storage-serviceaccount-cmdline-sample/src/main/java/StorageServiceAccount
Sample.java

Original comment by wonder...@google.com on 29 Dec 2014 at 3:21

GoogleCodeExporter commented 9 years ago
I had a similar issue while setting up a project for google maps engine API. 
The solution was to ensure that there were no conflicting libraries or versions 
in the dependencies (i.e. in my case the google-oauth-client version was 
different between the two deployments - bringing them inline solved the 
problem). Hope it helps!

Original comment by vortexm...@gmail.com on 15 Jan 2015 at 2:45