I had this problem. I did this to download it for the first time from the command line using the standard:
~/appengine-java-sdk/bin/appcfg.sh --oauth2 update webap
which prompts me to give him permission in the browser, and then asks me to cut-paste the secret, which he returns to me on the command line, which I did.
Android Studio gradle appengineUpdate ( ) .