इस तरह की समस्याओं को दूर करने के लिए कुछ अन्य उपयोगी टिप्स।
पहले कुछ टैग्स के लिए वर्बोज़ लॉगिंग सक्षम करें:
$ 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
आप इस तरह लॉगिंग देखेंगे:
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
जिसका अर्थ है कि इस खाता प्रकार के लिए कोई प्रमाणिक पंजीकृत नहीं है। यह देखने के लिए कि कौन से प्रमाणक पंजीकृत हैं पैकेज को स्थापित करते समय लॉग देखें:
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
मुझे समस्या थी कि प्रमाणक xml विवरणक एक स्ट्रिंग संसाधन को संदर्भित करता है जो स्थापना के दौरान ठीक से हल नहीं हुआ:
android:accountType="@string/account_type"
लॉग दिखाया
encountered new type: ServiceInfo: AuthenticatorDescription {type=@2131231194}, ...
इसे सामान्य स्ट्रिंग (संसाधन नहीं) के साथ प्रतिस्थापित करने से समस्या हल हो गई। यह एंड्रॉइड 2.1 विशिष्ट प्रतीत होता है।
android:accountType="com.example.account"