この問題について他の回答を試してみましたが、解決できません。送信者 ID が正しく、権限が追加され、API キーが true です。
プロジェクトの作成には、この投稿を使用します: http://developer.android.com/guide/google/gcm/gs.html#server-app
GCMRegistrar.checkDevice(this);
GCMRegistrar.checkManifest(this);
String regId = GCMRegistrar.getRegistrationId(this);
if (regId.equals("")) {
GCMRegistrar.register(this, SENDER_ID);
regId = GCMRegistrar.getRegistrationId(this);
} else {
Log.v(TAG, "Already registered");
}
String did = getDeviceID();
空の文字列を返します。