AccountManager IllegalArgumentException: key is null
问题 Ok, I'm getting an IllegalArgumentException at a point where it shouldn't. I have a custom extension of Account that is saved using the AccountManager: // Method inside a custom extension of Account public boolean save(AccountManager manager) { removeAll(manager); boolean result = manager.addAccountExplicitly(this, null, toBundle()); manager.setUserData(this, KEY_1, value1); manager.setUserData(this, KEY_2, value2); manager.setUserData(this, KEY_3, value3); return result; } The keys are