在Firebase上报告了在致命异常下更新现有应用程序,
Exception java.lang.SecurityException: uid 10123 cannot explicitly add accounts of type: com.ominfowave.android
android.os.Parcel.readException (Parcel.java:1599)
android.os.Parcel.readException (Parcel.java:1552)
android.accounts.IAccountManager$Stub$Proxy.addAccountExplicitly(IAccountManager.java:890)
android.accounts.AccountManager.addAccountExplicitly(AccountManager.java:712)
com.ominfowave.android.sync.SyncAdapter.createSyncAccountIfNeeded(SyncAdapter.java:86)
com.ominfowave.android.sync.SyncAdapter.triggerRefresh (SyncAdapter.java:110)
com.ominfowave.android.MyApplication.onConfigurationChanged (MyApplication.java:159)
android.app.ActivityThread.performConfigurationChanged (ActivityThread.java:4414)
android.app.ActivityThread.handleConfigurationChanged (ActivityThread.java:4487)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1598)
android.os.Handler.dispatchMessage (Handler.java:111)
android.os.Looper.loop (Looper.java:207)
android.app.ActivityThread.main (ActivityThread.java:5728)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:789)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:679)
Mainfest.xml已有以下代码
<service android:name="your.AuthService">
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
答案 0 :(得分:0)
我遇到了此错误,我认为这是因为我清除了应用程序的缓存和存储,然后卸载了我的应用程序。下次安装并运行该应用程序时,我在这篇文章中看到了相同的例外。电话重启对我来说解决了这个问题。