我正在尝试使用 Eclipse 和提供的 Google 插件在应用程序引擎上部署一个非常简单的应用程序。
我创建了最简单的 Android 应用程序,它启动了插件生成的 RegisterActivity,我在其中插入了 ID、Api Key 和项目编号。然后我单击按钮,但收到此错误消息:
11-25 16:53:50.372: E/com.example.a123.GCMIntentService(25146): Exception received when attempting to register with server at https://blabla-my-app67.appspot.com/_ah/api/
11-25 16:53:50.372: E/com.example.a123.GCMIntentService(25146): com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found
11-25 16:53:50.372: E/com.example.a123.GCMIntentService(25146): Not Found
虽然,控制台告诉我有一个实例正在运行,并且 CloudEndpointUtils.java 中的 LOCAL_ANDROID_RUN 变量设置为 false。
事实上,例如这个 URL 似乎是:http: //blabla-my-app67.appspot.com/_ah/api/explorer%20pagereturns me 404 error。
这怎么可能,我做错了什么?
非常感谢您。
铝
编辑 :
blabla-my-app67.appspot.com/_ah/api/explorer 不是 404,但http://blabla-my-app67.appspot.com/_ah/api是。
编辑解决方案: 您绝对需要使用 java JRE 1.7 进行编译!