Run the following command (make sure that the Cloud SDK is installed and configured):
gcloud components install app-engine-java
See https://cloud.google.com/sdk/docs/managing-components for details on managing Google Cloud components.
Next, set the default project name for gcloud commands:
gcloud config set project <your-project-name-here>