AccountManager does not add custom account in Android N preview

ぃ、小莉子 提交于 2019-12-04 00:42:40

Not sure if this is the same issue, but there's an issue with AccountManager on the current version of the Android N image. Basically, if you:

  1. Add an account to AccountManager
  2. Uninstall the app
  3. Reinstall the app
  4. Try to add account again

This will fail and you'll see the following in the log:

W/AccountManagerService( 1503): insertAccountIntoDatabase: Account {name=foo@bar.com, type=com.foo.bar}, skipping since the account already exists

This is a known issue and it's been reported to Google: https://code.google.com/p/android/issues/detail?id=210992 https://code.google.com/p/android/issues/detail?id=210951

I have totally the same issue. I could fix it by manually going to the application settings and enabling Сontacts permission. I don't know how, but after that I was able to use addAccountExplicitly() method without issues. I even disabled that permission again and cleared app data but it still was working properly...

After app was reinstalled - problem appeared again.

Has this been fixed now in the latest Android N release.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!