Issue 807 in google-api-java-client: java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient

402 views
Skip to first unread message

google-api-...@googlecode.com

unread,
Jun 28, 2013, 4:12:01 PM6/28/13
to google-api-jav...@googlegroups.com
Status: New
Owner: ngmic...@google.com
Labels: Type-Defect Priority-Medium

New issue 807 by ajaszc...@gmail.com: java.lang.NoSuchMethodError:
com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
http://code.google.com/p/google-api-java-client/issues/detail?id=807

Version of google-api-java-client 1.15.0-rc

06-28 21:01:21.935: E/AndroidRuntime(6947): java.lang.NoSuchMethodError:
com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.<init>
06-28 21:01:21.935: E/AndroidRuntime(6947): at
com.google.api.services.drive.Drive.<init>(SourceFile:135)
06-28 21:01:21.935: E/AndroidRuntime(6947): at
com.google.api.services.drive.Drive$Builder.build(SourceFile:6542)


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google-api-...@googlecode.com

unread,
May 13, 2014, 3:48:18 AM5/13/14
to google-api-jav...@googlegroups.com

Comment #1 on issue 807 by hearbeat...@gmail.com:
java.lang.NoSuchMethodError:
com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
http://code.google.com/p/google-api-java-client/issues/detail?id=807

Hi,

i too faced the same error. Is there any workaround to this? I am trying to
run the demo on code.google.com (Calendar demo v3).

Thanks

google-api-...@googlecode.com

unread,
Feb 2, 2015, 10:48:17 AM2/2/15
to google-api-jav...@googlegroups.com

Comment #2 on issue 807 by danil.ni...@aldigit.com:
java.lang.NoSuchMethodError:
com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
https://code.google.com/p/google-api-java-client/issues/detail?id=807

Hello,

I also got this error when I deployed Calendar example with some additional
code:

I got error when I call .build() method.

static Drive loadDriveClient() {
LOGGER.info("loadDriveClient method");
HttpTransport httpTransport = new NetHttpTransport();
JsonFactory jsonFactory = new JacksonFactory();
AppIdentityCredential credential =
new
AppIdentityCredential.Builder(Collections.singleton(DriveScopes.DRIVE)).build();
GoogleClientRequestInitializer keyInitializer =
new CommonGoogleClientRequestInitializer(API_KEY);

LOGGER.info("create drive builder");

Builder newDriveBuilder =new Drive.Builder(httpTransport, jsonFactory,
null)
.setHttpRequestInitializer(credential)
.setGoogleClientRequestInitializer(keyInitializer);


LOGGER.info("build drive service");
Drive service = newDriveBuilder.build();


LOGGER.info("drive service builded");
return service;
Reply all
Reply to author
Forward
0 new messages