Search code examples
google-app-enginegradlegcloudapp-engine-flexible

Error while executing Appengine's downloadCloudSdk task in my subproject


I am getting

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

I tried updating intellij and google cloud plugins. This task comes under

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

for my project.

More logs with --info flag, I get

> 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

Can anyone please suggest what might be wrong?


Solution

  • This was happening because google cloud sdk was not installed properly. So, I removed cloud sdk and reinstalled it. After that, I realized that my gcloud config was not set properly, so I reconfigured that, i.e. made it what the project expected it to be. These steps resolved the issue for me.