Unable to Deploy Android App Engine Project on Google App Engine

↘锁芯ラ 提交于 2019-11-28 00:52:28

问题


I am create one smile application in Android + Google App Engine in eclipse. i am trying to deploy that app on Google app Engine but it show the error message

Log Cat :

Unable to update: com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=AppEngineTest2&version=1& 400 Bad Request

Client Error (400) The request is invalid for an unspecified reason.

at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:282)
at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:235)
at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:214)
at com.google.appengine.tools.admin.ResourceLimits.remoteRequest(ResourceLimits.java:160)
at com.google.appengine.tools.admin.ResourceLimits.request(ResourceLimits.java:127)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:323)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:52)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:400)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Any one have simple Example(with Source code ) of Android + Google App Engine (c2dm) please share it ..


回答1:


I encountered the same problem as you and solved it in the following way:

  1. Before uploading, first you have to create the application in the App Engine Administration Console (see https://developers.google.com/appengine/docs/java/gettingstarted/uploading)

  2. Check your application id. The Application Identifier must be between 6 and 30 characters. Only Lowercase letters, digits, and hyphens (-) are acceptable characters. Leading and trailing hyphens are prohibited. - which means that Uppercase letters are not allowed.

  3. appengine-web.xml needs the same application id with which you have created your application in the Administration console. Put this application id between the <application> tag.

  4. Now you can deploy the application with Eclipse




回答2:


I found this recently as a bug of Eclipse or Google App Engine plugin. Make sure that you specify the app id correctly in appengine-web.xml. It should be AppEngineTest2, not the URL (AppEngineTest2.appspot.com).



来源:https://stackoverflow.com/questions/8879197/unable-to-deploy-android-app-engine-project-on-google-app-engine

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