谷歌端点客户端库方法无法执行

时间:2014-07-14 09:29:59

标签: android json google-app-engine

我有一个实体类User。

我成功生成了端点类和客户端库。

我将电子邮件属性设为Id。

在android项目中调用getUser()int时,如下所示:

Userendpoint.Builder builder = new Userendpoint.Builder(AndroidHttp.newCompatibleTransport(), new GsonFactory(), null);
Userendpoint service = builder.build();
com.mycompany.services.userendpoint.model.User user = new User();
user = service.getUser("*****@hotmail.com").execute();

我收到了这个错误:

07-14 12:19:00.380  30153-30180/com.emcloud.app W/System.err﹕ com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
07-14 12:19:00.380  30153-30180/com.emcloud.app W/System.err﹕ Not Found
07-14 12:19:00.380  30153-30180/com.emcloud.app W/System.err﹕ at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
07-14 12:19:00.390  30153-30180/com.emcloud.app W/System.err﹕ at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
07-14 12:19:00.390  30153-30180/com.emcloud.app W/System.err﹕ at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:312)
07-14 12:19:00.390  30153-30180/com.emcloud.app W/System.err﹕ at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1045)
07-14 12:19:00.390  30153-30180/com.emcloud.app W/System.err﹕ at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)
07-14 12:19:00.390  30153-30180/com.emcloud.app W/System.err﹕ at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
07-14 12:19:00.390  30153-30180/com.emcloud.app W/System.err﹕ at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)

即使我在app引擎上有一个已部署的项目版本。运行我的android项目时,它无法进入execute()方法。它会停止执行此方法。

0 个答案:

没有答案