![](/img/trans.png)
[英]staging server for google-cloud endpoint app-engine connected android project
[英]Google App Engine Connected Android (Eclipse) device endpoint error
我刚刚开始使用android(Java)探索App Engine,并点击了一个链接,教我如何创建App Engine Connected Android项目。 https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae
我完全按照链接中写的内容进行操作,
1)创建一个新的App Engine连接的android项目
2)从https://code.google.com/apis/console/#project获取项目号和API密钥
3)在Google API控制台中启用Google Cloud Messaging
4)在CloudEndpoints类中将LOCAL_ANDROID_RUN设置为true
5)在Google API(v17)中使用了模拟器
6)从android sdk管理器安装了android云消息传递库
7)我正在使用日食靛蓝
我在RegisterActivity.java中遇到这些行错误
import messageEndpoint.MessageEndpoint;
import messageEndpoint.CollectionResponseMessageData;
import messageEndpoint.MessageData;
我在GCMIntentService.java中遇到这些行错误
import com.tez.deviceinfoendpoint.Deviceinfoendpoint;
import com.tez.deviceinfoendpoint.Deviceinfoendpoint.Builder;
import com.tez.deviceinfoendpoint.model.DeviceInfo;
和这样的错误:
Deviceinfoendpoint无法解析为GCMIntentService.java类型
无法将MessageEndpoint解析为RegisterActivity.java类型
我该怎么办?
右键单击App Engine项目,然后选择Google-> Generate Cloud End Point Client Library。 清理项目并刷新。 它应该工作。
尽管我不太确定错误堆栈的原因,但还是建议您右键单击应用程序引擎项目,然后按上述建议选择“生成云端点”。 但是,如果您非常需要自己创建一个端点,则必须确保在webapp目录中的web.xml中添加如下所示的类似条目。
<param-name>services</param-name>
<param-value>${package}.MyEndpoint</param-value>
在您确保上面的输入后,
否则,如果您正在使用生产服务器,
如果问题出在通过创建的新端点公开的新端点/服务上,则希望对您有所帮助。 谢谢!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.