我一直在使用eclipse插件关注Creating an App Engine Connected Android Project上的简单教程。
设置完所有内容后,运行项目会带来两种可能性:
如果LOCAL_ANDROID_RUN = false
,该项目会吐出预期的投诉:
1)注册Google Cloud Messaging ...成功! 2)使用端点服务器注册...失败
您的Cloud Endpoints服务器未部署到App Engine或您的 需要通过设置更改设置以对本地实例运行 CloudEndpointUtils.java中LOCAL_ANDROID_RUN为'true'。
如果LOCAL_ANDROID_RUN = true
,我点击“注册”应用程序崩溃的第二个!这是我没有得到的部分。我正在开箱即用。我唯一做的就是将LOCAL_ANDROID_RUN
从false更改为true。
所以我一直在研究过去四个小时的决议。我看到关于-a 0.0.0.0
或-bindAddress 0.0.0.0
的谈话;除非我设置错误(我可能是),否则它们无法正常工作。有时我会得到下面的“错误”。所以,如果那是我的问题,那么在点击apply
和run
之前,我应该在参数框中准确提供什么?
Options:
--help, -h Show this help message and exit.
--server=SERVER The server to use to determine the latest
-s SERVER SDK version.
--address=ADDRESS The address of the interface on the local machine
-a ADDRESS to bind to (or 0.0.0.0 for all interfaces).
--port=PORT The port number to bind to on the local machine.
-p PORT
--sdk_root=DIR Overrides where the SDK is located.
--disable_update_check Disable the check for newer SDK versions.
--generated_dir=DIR Set the directory where generated files are created.
--jvm_flag=FLAG Pass FLAG as a JVM argument. May be repeated to
supply multiple flags.
有关如何使此out of the box
项目发挥作用的任何见解?