Unable to deploy Android App Engine project in Google App Engine

I am creating one smile app in Android + Google App Engine in eclipse. I am trying to deploy this application in Google App Engine, but it shows an error message

Log Code:

Failed to update: com.google.appengine.tools.admin.HttpIoException: error message in 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) 

Anyone has a simple example (with source code) of Android + Google App Engine (c2dm), please share it.

+7
source share
2 answers

I ran into the same problem as you and solved it as follows:

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

  • Check your app id. The application identifier must be between 6 and 30 characters. Only lowercase letters, numbers, and hyphens (-) are valid characters. Leading and trailing hyphens are prohibited. - this means that Uppercase letters are not allowed .

  • appengine-web.xml needs the same application identifier with which you created your application in the admin console. Put this application identifier between the <application> .

  • You can now deploy the application using Eclipse

+13
source

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

+5
source

All Articles