简体   繁体   English

更改的App-Engine Connected Android项目的App-Engine端的包名称未反映在Android Side

[英]Changing package name of App-Engine side of App-Engine Connected Android Project not reflected on Android Side

I am working on an Appengine Connected Android Project. 我正在研究Appengine Connected Android项目。 I am using Google Eclipse Plugin. 我正在使用Google Eclipse插件。 Anyway, after finishing my project and having it working for a few days, I decided to change the package names of the server code. 无论如何,在完成我的项目并使它工作了几天之后,我决定更改服务器代码的程序包名称。 But then when I generate the Cloud Endpoint Client Library, the new package name is not reflected on the client. 但是,当我生成Cloud Endpoint Client Library时,新的程序包名称未反映在客户端上。 I still see the old name there: eg in endpoints-libs/… . 我仍然在那看到旧名称:例如在endpoints-libs/… Does anyone know how I might fix this? 有谁知道我该如何解决?

But something else also happens that is very interesting. 但是还发生了一些非常有趣的事情。 The app works fine with the new server. 该应用程序可以在新服务器上正常运行。 When I run the android app and look at the log, it is calling the new server by the appropriate new name. 当我运行android应用并查看日志时,它正在使用适当的新名称调用新服务器。 So clearly the mapping between App Engine and Android is correct. 因此,很明显,App Engine和Android之间的映射是正确的。 So why is the name not updating in the client? 那么,为什么客户端中的名称没有更新? image my old package name was com.globs.game and the new name is now com.pans.game , if ever that helps. image我的旧软件包名称是com.globs.game ,新名称现在是com.pans.game ,如果有帮助的话。

I got the answer. 我得到了答案。 It turns out I forgot to change my class's attributes: 原来我忘了更改班级的属性:

@Api(name = "myappapi”,
  namespace = @ApiNamespace(ownerDomain = "mycompany.com", ownerName = "mycompany.com", packagePath = ""),
  version = "1",
  description = "myapp API",
  defaultVersion = AnnotationBoolean.TRUE)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM