So I copy the generated directory tree rooted at com/ into my GWT project 
in Android Studio. I compile the project and I get errors:
...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/
endpointsApi/shared/EndpointsApi.java:19: error: package 
com.google.api.gwt.shared 
does not exist
import com.google.api.gwt.shared.AuthScope;
                                ^
...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/
endpointsApi/shared/EndpointsApi.java:20: error: package 
com.google.api.gwt.shared 
does not exist
import com.google.api.gwt.shared.EmptyResponse;
                                ^
...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/
endpointsApi/shared/EndpointsApi.java:45: error: cannot find symbol
  public enum EndpointsApiAuthScope implements AuthScope {
                                               ^
  symbol:   class AuthScope
  location: interface EndpointsApi
...html/src/com/blue_green_group/gdxendpoints/backend/api/gwt/services/
endpointsApi/shared/EndpointsApi.java:56: error: method does not override or 
implement a method from a supertype
    @Override
    ^

Because EndpointsApi.java says

import com.google.api.gwt.shared.AuthScope;
import com.google.api.gwt.shared.EmptyResponse;

and there are no such packages in my project. Indeed I found them through 
googling mentioned only a few times, mainly in the long deprecated 
gwt-google-apis project. Mostly 
import com.google.api.gwt.oauth2.<...>

Where are those AuthScope and EmptyResponse superclasses source code 
supposed to come from for GWT to compile into Javascript?


On Thursday, December 29, 2016 at 2:00:11 PM UTC-5, Matthew Rubenstein 
wrote:
>
> Hello. I'm developing Linux desktop, Android and GWT apps as separate 
> modules in the same Android Studio project, each of which has an AppEngine 
> client. The desktop and Android apps are working, following guides in:
>
> https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints#2-connecting-your-android-app-to-the-backend
>
> https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints#app-engine-java-endpoints-module-template
>
> respectively. I'm trying to use the Github google/apis-client-generator to 
> generate the GWT client code:
> https://github.com/google/apis-client-generator
>
> ---------------------------------------------------------
> generate_library --input=rest --language=gwt --output_dir=.
> ---------------------------------------------------------
>
>
> but I don't understand how to use the code tree it emits:
> ---------------------------------------------------------
> ├── apis
> ├── build.xml
> ├── com
> │   ├── blue_green_group
> │   │   └── gdxendpoints
> │   │       └── backend
> │   │           └── api
> │   │               └── gwt
> │   │                   └── services
> │   │                       └── endpointsApi
> │   │                           └── shared
> │   │                               ├── EndpointsApi.java
> │   │                               ├── model
> │   │                               │   └── MyBean.java
> │   │                               └── package-info.java
> │   └── google
> │       └── api
> │           └── gwt
> │               └── services
> │                   └── EndpointsApi.gwt.xml
> └── rest
> ---------------------------------------------------------
>
> Am I supposed to import that com/ tree into my (GWT) project? Wouldn't I 
> do so just by gradle/import reference to the backend module already in my 
> project, which would keep them in sync etc? The .java and .gwt.xml files 
> are entirely redundant (identical) to the backend code already in my 
> project that I deployed to the AppEngine server (from which I downloaded 
> the apis and rest files that generated the new local tree), except for an 
> EndpointsApi.gwt.xml file and a package-info.java file (just a [package 
> <name>] line). Thanks for your insights.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b83ccd65-f128-4795-bef5-8a6b68278999%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to