Some other helpful tips for debugging such issues.
First enable verbose logging for some tags:
$ adb shell setprop log.tag.AccountManagerService VERBOSE $ adb shell setprop log.tag.Accounts VERBOSE $ adb shell setprop log.tag.Account VERBOSE $ adb shell setprop log.tag.PackageManager VERBOSE
You will see the registration as follows:
V/AccountManagerService: initiating bind to authenticator type com.example.account V/Accounts: there is no service connection for com.example.account V/Accounts: there is no authenticator for com.example.account, bailing out D/AccountManagerService: bind attempt failed for Session: expectLaunch true, connected false, stats (0/0/0), lifetime 0.002, addAccount, accountType com.example.account, requiredFeatures null
This means that there is no authenticator for this type of account. To find out which registrars are registered, view the log when installing the package:
D/PackageManager: encountered new type: ServiceInfo: AuthenticatorDescription {type=com.example.account}, ComponentInfo{com.example/com.example.android.AuthenticatorService}, uid 10028 D/PackageManager: notifyListener: AuthenticatorDescription {type=com.example.account} is added
I had a problem that the authenticator xml descriptor was referencing a string resource that was not correctly resolved during installation:
android:accountType="@string/account_type"
Magazines showed
encountered new type: ServiceInfo: AuthenticatorDescription {type=@2131231194}, ...
Replacing it with a normal string (not a resource) solved the problem. This is similar to Android 2.1.
android:accountType="com.example.account"
Jan Berkel May 20 '11 at 13:09 2011-05-20 13:09
source share