android c2dm registration Id fails
I am working on goog开发者_运维知识库le's C2DM and have a program on the android emulator trying to get registration ID. But I get following errors:
DEBUG/GoogleLoginService(171): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
WARN/GoogleLoginService(171): Device has no accounts: sending Intent { act=com.google.android.gsf.LOGIN_ACCOUNTS_MISSING }
ERROR/GTalkService(171): asyncFetch: no username
DEBUG/C2DMRegistrar(171): [C2DMRegistrar.20] AuthTokenCallback: account missing
Your device needs to have at least one Google account set up under Settings/Accounts for C2DM to work.
This is Because your device is not in Sync with the Google Go to Settings and add account enter Your Google account username and Password. Hope this Works..
精彩评论