草庐IT

AuthenticatorException

全部标签

java - Android AccountManager 抛出 AuthenticatorException : bind failure when adding account

我正在尝试在Android上使用AccountManager.addAccount()添加自定义帐户。我在关注thistutorial.当我尝试使用AccountManagerCallback的run方法获得结果时,我得到AuthenticatorException消息:android.accounts.AuthenticatorException:bind失败。经过一些研究,我找到了两个可能的解决方案,但我已经declaredauthenticator在application标签内,和checkedmyaccounttype.我还将list权限与教程中的list权限进行了比较。我正在

android.accounts.AuthenticatorException : bind failure

我收到以下异常;我知道这没什么好继续的,但似乎几乎没有可用的文档。可以这么说,我已经尝试了所有关于实现我自己的Authenticator的示例。我找到了建议的答案here修复我的list文件(声明服务)。已经这样做了,问题仍然存在。我最初的解决方案是基于thisexample:write-your-own-android-authenticatorW/System.err﹕android.accounts.AuthenticatorException:bindfailureW/System.err﹕atAndroid.accounts.AccountManager.convertErr