在我的子项目中执行 Appengine 的 downloadCloudSdk 任务时出错
Error while executing Appengine's downloadCloudSdk task in my subproject
我得到
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
任何人都可以提出可能有问题的地方吗?
这是因为 google cloud sdk 没有正确安装。所以,我删除了 cloud sdk 并重新安装了它。在那之后,我意识到我的 gcloud 配置设置不正确,所以我重新配置了它,即让它成为项目预期的样子。这些步骤为我解决了这个问题。
我也遇到了这个问题,我通过 运行 这个命令 gcloud components update
得到了修复
这个答案在 https://github.com/GoogleCloudPlatform/app-maven-plugin/issues/409#issuecomment-573389663
对我有用
I encountered this same issue. My environment:
Mac OS
JDK 8
appengine-maven-plugin 2.2.0
I was able to workaround it by removing this directory:
~/Library/Application Support/google-cloud-tools-java/
然后,以下将re-download依赖项
./gradlew appengineRun
就我而言,缺少 gcloud App-Engine java 组件,我必须通过 运行:
安装它
gcloud components install app-engine-java
之后,App-Engine maven 插件正常运行。
我得到
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
任何人都可以提出可能有问题的地方吗?
这是因为 google cloud sdk 没有正确安装。所以,我删除了 cloud sdk 并重新安装了它。在那之后,我意识到我的 gcloud 配置设置不正确,所以我重新配置了它,即让它成为项目预期的样子。这些步骤为我解决了这个问题。
我也遇到了这个问题,我通过 运行 这个命令 gcloud components update
这个答案在 https://github.com/GoogleCloudPlatform/app-maven-plugin/issues/409#issuecomment-573389663
对我有用I encountered this same issue. My environment:
Mac OS
JDK 8
appengine-maven-plugin 2.2.0 I was able to workaround it by removing this directory:
~/Library/Application Support/google-cloud-tools-java/
然后,以下将re-download依赖项
./gradlew appengineRun
就我而言,缺少 gcloud App-Engine java 组件,我必须通过 运行:
安装它gcloud components install app-engine-java
之后,App-Engine maven 插件正常运行。