0

I'm using google cloud endpoints as the backend server and google cloud storage to host the images for the project. Now I want to make an endpoint to upload a image file to the google cloud storage bucket. For that I have ended up on this google cloud java client github page

They say, if you want to compile using gradle, then use this line:

compile 'com.google.gcloud:gcloud-java:jar:0.1.0'

but when I add this line to the gradle file, then it gives error while compiling:

Error:(35, 13) Failed to resolve: com.google.gcloud:gcloud-java:jar

How do I solve this problem?

Thanks!

JJ Geewax
  • 10,342
  • 1
  • 37
  • 49
penduDev
  • 4,743
  • 35
  • 37
  • do you have central maven repo configured for your gradle build? – Igor Artamonov Dec 03 '15 at 16:12
  • I have jcenter repository configured, and the problem was solved by using compile 'com.google.gcloud:gcloud-java:0.1.0'....as told by mziccard here:https://goo.gl/ALXq7R – penduDev Dec 03 '15 at 16:12

1 Answers1

1

Looks like this was answered over on GitHub, but just for posterity, it looks like with Gradle the line should be

compile 'com.google.gcloud:gcloud-java:0.1.0'

(Note this removed the :jar piece.)

JJ Geewax
  • 10,342
  • 1
  • 37
  • 49