简体   繁体   English

无法运行Google的示例-Android App Engine移动后端

[英]Unable to run Google's example - Android App Engine Mobile Backend

I am trying to run this example . 我正在尝试运行此示例 I reached upto "Modify the Client Application" and I am then having the following errors (and below is my file organization screenshot: 我到达“修改客户端应用程序”,然后遇到以下错误(以下是我的文件组织屏幕截图:

At this stage, as you can see below, I have the following issues in MainActivity.java. 在此阶段,如您在下面看到的,MainActivity.java中存在以下问题。

  1. activity_main.xml is called out but the project in its layout folder only has activity_register.xml (see here ) activity_main.xml被调出,但是其布局文件夹中的项目仅具有activity_register.xml(请参见此处

  2. "Checkinendpoint" class is undefined but there is a CheckInEndPoint.java in the "MobileAssistant-AppEngine" project, as you can see in the image below. “ Checkinendpoint”类未定义,但是“ MobileAssistant-AppEngine”项目中有一个CheckInEndPoint.java,如下图所示。 Is that not supposed to get picked up in MainActivity.java - how to import that? 那不应该在MainActivity.java中获取-如何导入吗? (doesnt work like a normal library import, ie "MobileAssistant-AppEngine" is not a library that "MobileAssistant" can reference. (不像普通的库导入一样工作,即“ MobileAssistant-AppEngine”不是“ MobileAssistant”可以引用的库。

  3. Same question as above for CheckIn class that is also undefinted in the picture below. 对于CheckIn类,与上述问题相同,但在下图中未定义。

在此处输入图片说明

从Project-MobileAssistant删除deviceinfoendpoint-v1-generated-sourcemessageendpoint-v1-generated-source ,然后右键单击MobileAssistant-appengine项目,然后单击从Google Sub菜单生成Cloud EndPoint库。

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

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