Java API for Google Drive

I am desperately trying to compile

Quick Launch: Launch Drive Application in Java

but no matter, I always clicked:

java.lang.NoSuchMethodError: com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient

The same thing happens for the servlet and for the SE version.

Any ideas?

+1
source share
2 answers

Compiled and running code here.

Steps:

  • Create / select the project Google Developer Console , enable storage API-interface, create a new client ID, so that you have a valid CLIENT_ID, CLIENT_SECRET, REDIRECT_URI.

  • google-api-services-drive-v2-rev123-java-1.18.0-rc.zip, jars .

enter image description here

  • document.txt ( , eclipse IDE) .

  • CLIENT_ID, CLIENT_SECRET, REDIRECT_URI ( 1) .

  • .

:

enter image description here

, , .

Google .

+1

, Drive API API Java

+1

Source: https://habr.com/ru/post/1606575/


All Articles