App Engine Connected Android : can't make sample project work properly

爱⌒轻易说出口 提交于 2019-12-02 03:44:22

问题


I want to make an App Engine connected Android app, and I'm beginning with google's tutorial available here : http://code.google.com/intl/fr/eclipse/docs/appeng_android_create_project.html

I did exactly as they did (registered into C2DM service, installed plugins, signed on in eclipse with my google acc, etc...), but when I launch the sample app (with "Debug as" > "Local App Engine connected Android Application") and I click on the button "say hello", I get the message "Failure: Connection to http://127.0.1.1:8888 refused.

I deployed Server side package on GAE, removed file debugging_prefs.properties, and ran it on my phone, it worked. But no way to make it work in test environment ....

I have eclipse 3.7 Indigo, App Engine plugin 1.6.1, and GWT 2.4.0, on Ubuntu 10.04.

Any idea ? Thanks for help.

edit : just installed eclipse and plugins in a Windows XP VM... worked on the first try ... But still not in my Ubuntu :(

edit 2 : freshly installed ubuntu 11.10 in an other VM. Same error as in my 10.04


回答1:


I finally managed to make it work using the answer I received here. I've add this line in getDebugUrl in util class

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

with 192.168.1.50 being my Ubuntu VM IP address



来源:https://stackoverflow.com/questions/8872521/app-engine-connected-android-cant-make-sample-project-work-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!