在我的子项目中执行Appengine的downloadCloudSdk任务时出错

时间:2018-09-27 11:06:40

标签: google-app-engine gradle gcloud app-engine-flexible

我得到

com.google.cloud.tools.managedcloudsdk.ManagedSdkVerificationException: com.google.cloud.tools.managedcloudsdk.command.CommandExitException: Process failed with exit code: 1

我尝试更新intellij和Google云插件。该任务位于

App Engine Flexible environment tasks > downloadCloudSdk - Download the Cloud SDK

对于我的项目。

更多带有--info标志的日志,我得到

> Task :appengine-backend:downloadCloudSdk FAILED
Putting task artifact state for task ':appengine-backend:downloadCloudSdk' into context took 0.0 secs.
Up-to-date check for task ':appengine-backend:downloadCloudSdk' took 0.0 secs. It is not up-to-date because:
  Task has not declared any outputs.

:appengine-backend:downloadCloudSdk (Thread[Task worker for ':',5,main]) completed. Took 0.349 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':appengine-backend:downloadCloudSdk'.
> com.google.cloud.tools.managedcloudsdk.ManagedSdkVerificationException: com.google.cloud.tools.managedcloudsdk.command.CommandExitException: Process failed with exit code: 1

有人可以建议出什么问题吗?

3 个答案:

答案 0 :(得分:2)

此答案对我有效,https://github.com/GoogleCloudPlatform/app-maven-plugin/issues/409#issuecomment-573389663

我遇到了同样的问题。我的环境:

Mac OS

JDK 8

appengine-maven-plugin 2.2.0 我可以通过删除以下目录来解决此问题:

〜/ Library / Application Support / google-cloud-tools-java /

然后,以下内容将重新下载依赖项

./gradlew appengineRun

答案 1 :(得分:1)

发生这种情况是因为未正确安装google cloud sdk。因此,我删除了cloud sdk并重新安装了它。之后,我意识到我的gcloud配置设置不正确,因此我重新配置了该设置,即按照项目预期的方式进行配置。这些步骤为我解决了这个问题。

答案 2 :(得分:0)

这个问题也发生在我身上,通过运行此命令data