4

我正在研究谷歌的 C2DM,并在 android 模拟器上有一个程序试图获取注册 ID。但我收到以下错误:

DEBUG/GoogleLoginService(171): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }

WARN/GoogleLoginService(171):设备没有帐户:发送 Intent { act=com.google.android.gsf.LOGIN_ACCOUNTS_MISSING }

错误/GTalkService(171): asyncFetch: 没有用户名

调试/C2DMRegistrar(171):[C2DMRegistrar.20] AuthTokenCallback:帐户丢失

4

2 回答 2

14

您的设备需要在设置/帐户下设置至少一个 Google 帐户,C2DM 才能正常工作。

于 2010-09-04T19:37:52.980 回答
2

这是因为您的设备与 Google 不同步 转到设置并添加帐户输入您的 Google 帐户用户名和密码。希望这有效..

于 2012-05-15T03:24:06.377 回答