Android app crashes on addAccountExplicitly(account, password, null);

后端 未结 6 1539
伪装坚强ぢ
伪装坚强ぢ 2021-01-03 19:22

After a successful basic authentication I want to add an account for later use. When I tried to create this account using the following code:

AccountManager          


        
6条回答
  •  孤城傲影
    2021-01-03 20:09

    In my case i was having Package name contains capital characters, so service was not getting registered in Android Manifest and hence issue was occurred.

    android:name="com.SyncServices.SyncService" 
    

    changed to

    android:name="com.syncservices.SyncService"
    

提交回复
热议问题