[英]How can we update the App Engine Java SDK Using the New Google Cloud Plugin for Eclipse?
I have recently updated from the deprecated Google Plugin for Eclipse to the new Google Cloud Tools for Eclipse . 我最近已从不推荐使用的Eclipse的Google Plugin更新为新的Eclipse的Google Cloud Tools 。
After adding in the "Web App Libraries" through the "Add Library" section (shown above), I can see when expanding (see below) that I've imported older versions of the Google App Engine SDK for Java, version 1.9.48. 通过“添加库”部分(如上所示)添加“ Web App库”后,我可以看到在展开(请参见下文)时,我已经导入了适用于Java的Google App Engine SDK 1.9.48的旧版本。 。 The current version at the time of this post is 1.9.57, available on the App Engine SDK for Java page.
撰写本文时,当前版本为1.9.57,可从App Engine SDK for Java页面上获得。
But there's nothing about where to place this update so it's recognized. 但是没有任何地方可以放置此更新,因此它可以被识别。 I already have 1.9.51 on my computer, but the plugin is using 1.9.48 only.
我的计算机上已经有1.9.51,但是该插件仅使用1.9.48。
How can we update Eclipse so "Web App Libraries" imports the latest App Engine SDK? 我们如何更新Eclipse,以便“ Web App Libraries”导入最新的App Engine SDK? This used to be much easier with the old deprecated plugin, as we could import the SDK bundle via the "Google" menu.
使用旧的不推荐使用的插件,这过去要容易得多,因为我们可以通过“ Google”菜单导入SDK捆绑包。
Importing libraries does not seem to be the preferred way to install the SDK. 导入库似乎不是安装SDK的首选方法。 It is more effective to follow the instructions in the " Quickstart " for Eclipse, namely:
遵循Eclipse的“ 快速入门 ”中的指示更为有效,即:
1) Install Eclipse IDE 4.5 or later: 1)安装Eclipse IDE 4.5或更高版本:
2) Install the latest version of the Google Cloud SDK: 2)安装最新版本的Google Cloud SDK:
3) Run the following command to add the gcloud component that includes the App Engine SDK for Java: 3)运行以下命令以添加包含适用于Java的App Engine SDK的gcloud组件:
gcloud components install app-engine-java gcloud组件安装app-engine-java
Preferences-->Google--> Appengine 偏好设置-> Google-> Appengine
choose your Sdk,by defaults the choosed one will be added to the build path of any new project 选择您的SDK,默认情况下,所选的SDK将添加到任何新项目的构建路径中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.