java-samples icon indicating copy to clipboard operation
java-samples copied to clipboard

Exception in thread "main" java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.build

Open pasumarthivijaykumar opened this issue 5 years ago • 0 comments
trafficstars

(Please fill out these details before submitting an issue)

Sample Name

Vijay ([email protected])

Expected Behavior

As per sample example i must not get this exception.

Actual Behavior

Mar 05, 2020 2:53:07 PM com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly WARNING: unable to change permissions for everybody: C:\Users\vpasumar\eclipse-workspace\GoogleDriveExample\tokens Mar 05, 2020 2:53:07 PM com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly WARNING: unable to change permissions for owner: C:\Users\vpasumar\eclipse-workspace\GoogleDriveExample\tokens Exception in thread "main" java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.(Lcom/google/api/client/http/HttpTransport;Lcom/google/api/client/http/HttpRequestInitializer;Ljava/lang/String;Ljava/lang/String;Lcom/google/api/client/json/JsonObjectParser;Lcom/google/api/client/googleapis/services/GoogleClientRequestInitializer;Ljava/lang/String;Z)V at com.google.api.services.drive.Drive.(Drive.java:135) at com.google.api.services.drive.Drive$Builder.build(Drive.java:8036) at com.google.drive.conn.GoogleDriveConnection.main(GoogleDriveConnection.java:48)

Specifications

  • Java version (java -version) 11
  • OS (Mac/Linux/Windows) Windows

pasumarthivijaykumar avatar Mar 05 '20 09:03 pasumarthivijaykumar