如何修复“ App Engine SDK已过期”?

时间:2018-08-17 05:44:03

标签: java google-app-engine

很多年前,我使用“ appengine-java-sdk-1.9.22 ”构建使用某些数据存储区的Web应用程序

现在,我在eclipse上更新了我的应用,并在部署后说:

Unable to update:
com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/deploy?app_id=speaklikewater&version=1&
401 Unauthorized
Your version of the App Engine SDK is out-of-date. Please update your SDK at https://cloud.google.com/appengine/docs/standard/java/download#appengine_sdk and your Maven plugin, if necessary, according to the instructions at https://cloud.google.com/appengine/docs/standard/java/tools/maven

    at com.google.appengine.tools.admin.OAuth2ServerConnection.doHandleSendErrors(OAuth2ServerConnection.java:65)
    at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:373)
    at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:317)
    at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:296)
    at com.google.appengine.tools.admin.LoggingClientDeploySender.send(LoggingClientDeploySender.java:47)
    at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:1134)
    at com.google.appengine.tools.admin.AppVersionUpload.deploy(AppVersionUpload.java:982)
    at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java:865)
    at com.google.appengine.tools.admin.AppVersionUpload.uploadFilesTransaction(AppVersionUpload.java:223)
    at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:197)
    at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:580)
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:65)
    at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:433)
    at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:158)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

现在,我使用了最近的“ sdk appengine-java-sdk-1.9.54”(请参见下图),但仍然遇到相同的错误

enter image description here

注意: 我通过转到Window ==> Preferences ==> Google ===> App Engine并选择了“ appengine-java-sdk-1.9.54”来更改为新的SDK

如果我使用“ appengine-java-sdk-1.9.64”,则会收到此错误“内部错误”:

enter image description here

因此,我决定使用“ appengine-java-sdk-1.9.54”,因为有些人也有“内部错误”,并且他们尝试使用较低版本并且有效。

我不确定该如何解决。

1 个答案:

答案 0 :(得分:0)

如公开发行[1]中所述,不建议使用Google插件,您需要将[2]迁移到Google工具。

这里您可以快速入门,以更好地了解GAE当前如何与Eclipse [3]一起使用。