简体   繁体   English

我们如何使用适用于Eclipse的新Google Cloud Plugin更新App Engine Java SDK?

[英]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更新新的EclipseGoogle Cloud Tools

Eclipse-添加库

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页面上获得。

Eclipse 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将添加到任何新项目的构建路径中

My project somehow got locked to a particular version. 我的项目以某种方式被锁定到特定版本。 To fix it: 要解决这个问题:

Windows -> Preferences -> Google Cloud Tools -> Untick "Choose SDK". Windows->首选项-> Google Cloud Tools->取消选中“选择SDK”。

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如果您安装了Eclipse的Google插件,是否还需要下载App Engine Java SDK? - If you install the Google Plugin for Eclipse, do you still need to download the App Engine Java SDK? 将Google App Engine Eclipse插件连接到Cloud SQL - Connect Google App Engine Eclipse Plugin to Cloud SQL 如何在使用GAE Maven插件时在IDEA中调试Java Google App Engine应用程序? - How can I debug a Java Google App Engine app in IDEA while using the GAE Maven plugin? 适用于Intellij的Google App Engine Java SDK 1.9.7插件吗? - Google app engine Java SDK 1.9.7 plugin for Intellij? 如何在不下载Google Cloud Java SDK的情况下对服务帐户进行身份验证(不在App Engine上) - How to authenticate a service account without download for the Google Cloud Java SDK (not on App Engine) Google App Engine Servlet使用Eclipse插件引发java.security.AccessControlException - Google App Engine servlet throws java.security.AccessControlException using Eclipse plugin 如何将appcfg.py用于使用谷歌的eclipse插件创建的google-app-engine项目? - how to use appcfg.py for google-app-engine projects created using google's eclipse plugin? 使用旧的Eclipse Google插件部署App Engine项目时出错 - Error deploying app engine project using Old Eclipse google plugin 谷歌应用引擎:maven或eclipse谷歌插件 - Google app engine: maven or eclipse google plugin 如何使用Java的最新App Engine SDK(使用Maven或Eclipse)? - How can i use the newest app engine sdk for java (with maven or eclipse)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM