【发布时间】:2018-11-19 16:42:39
【问题描述】:
我最近在 Google App 引擎方面做得不多,我最后一次使用它是 SDK 是 1.9.25 并且 Eclipse 插件是无缝的。现在经过一番挖掘,我发现谷歌将所有东西都更改为谷歌云工具,并且只支持 Java 8。所以我下载了 Eclipse Oxygen 并更新了插件。我使用 Google 标准环境创建了一个新项目,并尝试运行它生成的示例项目。现在我收到以下错误
错误:(gcloud.components.update) 您当前的工作目录位于 Cloud SDK 安装根目录中:C:\Users\\AppData\Local\Google\ct4j-cloud-sdk\LATEST\google-cloud-sdk。要执行此更新,请从该目录外部运行命令。
我阅读了一些帖子,发现了较旧的 python 安装(2.7 版本),所以我删除了系统和用户路径引用。我还为 CLOUDSDK_PYTHON 创建了一个环境变量,其值为C:\Users\<user name>\AppData\Local\Google\ct4j-cloud-sdk\LATEST\google-cloud-sdk\platform\bundledpython\python.exe。但是我仍然陷入同样的错误。我只是想使用最新版本来移植到 Java 8 运行时。
来自 Eclipse 控制台的完整日志如下
[Installing Google Cloud SDK]
Welcome to the Google Cloud SDK!
Your current Cloud SDK version is: 204.0.0
Installing components from version: 204.0.0
ERROR: (gcloud.components.update) Your current working directory is inside the Cloud SDK install root: C:\Users\<user name>\AppData\Local\Google\ct4j-cloud-sdk\LATEST\google-cloud-sdk. In order to perform this update, run the command from outside of this directory.
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
[Installing Google Cloud SDK]
Welcome to the Google Cloud SDK!
Your current Cloud SDK version is: 204.0.0
Installing components from version: 204.0.0
ERROR: (gcloud.components.update) Your current working directory is inside the Cloud SDK install root: C:\Users\<user name>\AppData\Local\Google\ct4j-cloud-sdk\LATEST\google-cloud-sdk. In order to perform this update, run the command from outside of this directory.
This will install all the core command line tools necessary for working with
the Google Cloud Platform.
【问题讨论】:
-
请注意,今天发布的 Cloud Tools for Eclipse 1.7.1 已修复此问题。