【问题标题】:App Engine Connected Android : can't make sample project work properlyApp Engine Connected Android:无法使示例项目正常工作
【发布时间】:2012-01-15 19:12:47
【问题描述】:

我想制作一个与 App Engine 连接的 Android 应用,我从此处提供的 google 教程开始: http://code.google.com/intl/fr/eclipse/docs/appeng_android_create_project.html

我完全按照他们的做法(注册到 C2DM 服务、安装插件、使用我的 google acc 登录 eclipse 等),但是当我启动示例应用程序时(使用“调试为”>“本地应用程序引擎已连接 Android 应用程序”),然后单击“问好”按钮,我收到消息“失败:连接到 http://127.0.1.1:8888 被拒绝。

我在 GAE 上部署了服务器端包,删除了文件 debugging_prefs.properties,然后在我的手机上运行它,它工作正常。但是没有办法让它在测试环境中工作....

我在 Ubuntu 10.04 上有 eclipse 3.7 Indigo、App Engine 插件 1.6.1 和 GWT 2.4.0。

有什么想法吗?感谢您的帮助。

编辑:刚刚在 Windows XP VM 中安装了 eclipse 和插件...第一次尝试就成功了...但在我的 Ubuntu 中仍然没有:(

edit 2:在另一个 VM 中新安装的 ubuntu 11.10。与我的 10.04 中的错误相同

【问题讨论】:

    标签: android google-app-engine android-c2dm


    【解决方案1】:

    我终于设法使用收到的答案 here 使其工作。我在 util 类的getDebugUrl 中添加了这一行

    s = "url=http://192.168.1.50:8888";
    

    192.168.1.50 是我的 Ubuntu 虚拟机 IP 地址

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-30
      相关资源
      最近更新 更多