简体   繁体   中英

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-添加库

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. The current version at the time of this post is 1.9.57, available on the App Engine SDK for Java page.

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.

How can we update Eclipse so "Web App Libraries" imports the latest 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.

Importing libraries does not seem to be the preferred way to install the SDK. It is more effective to follow the instructions in the " Quickstart " for Eclipse, namely:

1) Install Eclipse IDE 4.5 or later:

2) Install the latest version of the Google Cloud SDK:

3) Run the following command to add the gcloud component that includes the App Engine SDK for Java:

gcloud components install app-engine-java

Preferences-->Google--> Appengine

choose your Sdk,by defaults the choosed one will be added to the build path of any new project

My project somehow got locked to a particular version. To fix it:

Windows -> Preferences -> Google Cloud Tools -> Untick "Choose SDK".

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM