如何确定由Google App Engine脚本生成的Android客户端库的服务构建器的类名?

时间:2022-04-24 17:37:51

Okay, so let me be more specific. I am following this guide:

好的,让我更具体一点。我正在遵循本指南:

https://developers.google.com/appengine/docs/python/endpoints/consume_android

BUT, when I reach this point, I hit a roadblock (#Python_Creating_the_service_object):

但是,当我达到这一点时,我遇到了障碍(#Python_Creating_the_service_object):

//You must use a service object to make requests to the Endpoints API. For unauthenticated requests, construct the service object as follows:

Tictactoe.Builder builder = new Tictactoe.Builder(
AndroidHttp.newCompatibleTransport(), new GsonFactory(), null);
service = builder.build();

The thing is, I have constructed the client library and included all the correct .jars, but I cannot find out what Tictactoe is a placeholder for? What name can I use, or rather, where can I find that out?

问题是,我构建了客户端库并包含了所有正确的.jars,但我无法找到Tictactoe是占位符的内容?我可以使用什么名称,或者说,我在哪里可以找到它?

Best regards


ANSWER:

For reasons unbeknownst to me, eclipse refused to recognize the content of my jar file, with the builder in it.

由于我不知道的原因,eclipse拒绝识别我的jar文件的内容,其中包含了构建器。

If you have the same problem, here's how you solve it:

如果您遇到同样的问题,请按以下步骤解决问题:

  1. Extract the content of the .jar file with your source in it (command:jar xf [...-sources.jar] )
  2. 用你的源代码提取.jar文件的内容(命令:jar xf [...- sources.jar])

  3. Copy the file into you workspace
  4. 将文件复制到您的工作区

Damn Eclipse...

1 个解决方案

#1


0  

For reasons unbeknownst to me, eclipse refused to recognize the content of my jar file, with the builder in it.

由于我不知道的原因,eclipse拒绝识别我的jar文件的内容,其中包含了构建器。

If you have the same problem, here's how you solve it:

如果您遇到同样的问题,请按以下步骤解决问题:

Extract the content of the .jar file with your source in it (command:jar xf [...-sources.jar] ) Copy the file into you workspace Damn Eclipse...

用你的源代码提取.jar文件的内容(命令:jar xf [...- sources.jar])将文件复制到你的工作区Damn Eclipse ...

#1


0  

For reasons unbeknownst to me, eclipse refused to recognize the content of my jar file, with the builder in it.

由于我不知道的原因,eclipse拒绝识别我的jar文件的内容,其中包含了构建器。

If you have the same problem, here's how you solve it:

如果您遇到同样的问题,请按以下步骤解决问题:

Extract the content of the .jar file with your source in it (command:jar xf [...-sources.jar] ) Copy the file into you workspace Damn Eclipse...

用你的源代码提取.jar文件的内容(命令:jar xf [...- sources.jar])将文件复制到你的工作区Damn Eclipse ...