Using the Android Developer Studio, I tried creating an App Engine backend from the menu for an existing Android project:
Tools => Google Cloud Tools => Generate App Engine Backend
The error message was:
Could not find the gcm.jar. Please install the Android SDK Extra : 'Google Cloud Messaging for Android Library' using the Android SDK Manager.
From the Android SDK manager that library is marked "Deprecated". So what's the right thing to install / use?
"Google Play Services" appears to have replaced Google Cloud Messaging and is used instead: http://developer.android.com/google/gcm/gs.html. That said, I installed the deprecated version also to get the app running.
Steps:
Ref: http://github.com/phonegap-build/PushPlugin/issues/41
In Android Studio version 5.1.2 this was fixed! That said, they still haven't updated the documentation.