GoogleCloudPlatform / gradle-appengine-templates

Freemarker based templates that build with the gradle-appengine-plugin
437 stars 205 forks source link

Can't install client libraries #6

Closed mellson closed 10 years ago

mellson commented 10 years ago

Hi there,

Thanks for the great work on these templates. I am having problems using the template for endpoints.

Everything is fine up until I try to install the client libraries

This gives me this error in Android Studio: `Error:Execution failed for task ':backend:appengineEndpointsGetClientLibs'.

There was an error running endpoints command get-client-lib: web.xml must have 1 (found:0) SystemServiceServlet servlet`

I have not changed anything in the template, and I have tried to follow the template from scratch twice now.

The source code in the pictures differs from the one I get when I use the template. In the pictures there is @API annotations in the class. In the template these annotations are not there.

I am using Android Studio 0.5.7 on Mac os 10.9.2

Hope this makes sense :)

loosebazooka commented 10 years ago

So there might be an issue with whitespaces that can be causing that. Can you change your plugin version in your build.gradle file in backend (buildscript->dependencies->classpath) to 1.9.3

mellson commented 10 years ago

Thanks for the feedback, I tried that and it didn't work. When I looked at the code from the template I realized that it is inserting the source from "App Engine Java Servlet Module" instead of "App Engine Java Endpoints Module".

I just tried with another project, here everything worked ok. Maybe I just have a corrupt project file.