简体   繁体   English

生成云端点客户端库突然停止工作

[英]Generate cloud endpoint client library suddenly stopped working

Normally when I right-click my app engine project and choose "Generate cloud endpoint client library" using the Google plugin for Eclipse, it generates the client libraries and automatically copies them into the Android client project. 通常,当我右键单击我的应用程序引擎项目并使用Eclipse的Google插件选择“生成云端点客户端库”时,它会生成客户端库并自动将它们复制到Android客户端项目中。

However, for no apparent reason, the client library is no longer being copied to the client project. 但是,由于没有明显的原因,客户端库不再被复制到客户端项目。 In fact, it has been removed (so now I have a lot of errors in my project because it can't find the libraries). 事实上,它已被删除(所以现在我的项目中有很多错误,因为它找不到库)。

I've tried re-generating the client library which completes without any errors but the problem persists. 我已经尝试重新生成客户端库,完成没有任何错误,但问题仍然存在。 Interestingly, it seems to complete the process slightly faster than it used to. 有趣的是,它似乎比以前更快地完成了这个过程。

I've tried cleaning all projects. 我试过清理所有项目。

I've tried manually adding the generated source folders from endpoint-libs , but I can't because the generated folders no longer exist. 我尝试从endpoint-libs手动添加生成的源文件夹,但我不能,因为生成的文件夹不再存在。 There is also no longer any reference to them in the Java build path for the client project. 在客户端项目的Java构建路径中也不再引用它们。

I've tried checking out an older version of the code where I know the plugin worked, and the problem occurred there too which leads me to believe it is not a problem in my code. 我已经尝试查看我知道该插件工作的代码的旧版本,并且问题也在那里发生,这让我相信它在我的代码中不是问题。

I also tried deleting the project in eclipse and re-importing everything. 我也尝试在eclipse中删除项目并重新导入所有内容。

What happened? 发生了什么? I've used the generate function many times before and it worked every time until now. 我之前已经多次使用了generate函数,并且每次都使用它直到现在。 I think it started after doing a project clean. 认为它是在完成项目清理之后开始的。

An Update 更新

I followed the suggestion here and was able to generate the client library for one of my endpoints, but the actual .jar file which is needed was not generated (the generated readme file even specifically states the filename and location of the jar but it does not exist). 我按照这里的建议并能够为我的一个端点生成客户端库,但是没有生成所需的实际.jar文件(生成的自述文件甚至专门说明了jar的文件名和位置,但它没有存在)。

The issue tracker shows that this issue was resolved ( https://code.google.com/p/googleappengine/issues/detail?id=9746 ). 问题跟踪器显示此问题已得到解决( https://code.google.com/p/googleappengine/issues/detail?id=9746 )。

Also @howettl posted above in the comments that this issue was fixed. 另外@howettl在评论中发布了此问题已修复。

There were some questions in the issue tracking about remote servers being involved and the fix not requiring an update to the GPE. 在跟踪涉及远程服务器的问题中存在一些问题,并且修复不需要更新GPE。 This appears to be related to the fact that there is a Google web service used by the GPE for generating some of the cloud endpoint code. 这似乎与GPE用于生成某些云端点代码的Google Web服务有关。

If this web service is not working (routing issue, server issue, etc), or you don't have a connection to the internet, you will not be able to generate (or regenerate) cloud endpoints for your project. 如果此Web服务不起作用(路由问题,服务器问题等),或者您没有连接到Internet,则无法为项目生成(或重新生成)云端点。

Also if your generation is slow, it might be due to your internet connection speed. 此外,如果您的一代很慢,可能是由于您的互联网连接速度。

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

相关问题 生成云端点客户端库更新库 - Generate cloud endpoint client library update libraries Objectify + Eclipse + Generate Cloud Endpoint客户端库:“变量不符合样式指南” - Objectify+Eclipse+Generate Cloud Endpoint Client Library: “Variable does not conform to style guide” 使用实体类设计模式在Android Studio中生成Cloud Endpoint Client Library - Generate Cloud Endpoint Client Library in Android Studio using Entity Class Design Pattern 从客户端调用云端点库 - Calling cloud endpoint library from a client 地理编码器突然停止工作 - Geocoder suddenly stopped working onSharedPreferenceChanged突然停止工作 - onSharedPreferenceChanged suddenly stopped working 无法从客户端使用Google Cloud Endpoint插入 - Google Cloud Endpoint insert not working from client 无法生成云端点客户端库 - Unable to generate cloud end point client library 在干净的项目上生成Cloud Endpoint库时发生错误 - An error occured when Generate Cloud Endpoint Library on clean project 自2017年9月26日以来,Firebase云消息传递无法正常工作,突然停止工作了,有什么想法吗? - Firebase cloud messaging not working since 26th September 2017,Suddenly stopped working, any idea?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM