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;