“com.android.exchange.ExchangeService 已泄露...”运行模拟器时出错 [已关闭]

2022-09-03 03:05:59

在将模拟器与IntelliJ一起使用时,我看到了许多这样的错误。我不知道该怎么办。它似乎并没有影响任何事情,所以我没有太多关注它。但我担心它可能会在不久的将来引起问题。

01-01 15:16:22.805: ERROR/StrictMode(607): null
        android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@40cf0270 that was originally bound here
        at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
        at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:863)
        at android.app.ContextImpl.bindService(ContextImpl.java:1418)
        at android.app.ContextImpl.bindService(ContextImpl.java:1407)
        at android.content.ContextWrapper.bindService(ContextWrapper.java:473)
        at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)
        at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)
        at com.android.emailcommon.service.AccountServiceProxy.getDeviceId(AccountServiceProxy.java:116)

答案 1

这个答案并不能解决问题,只会使症状消失。尝试在模拟器选项中禁用主机GPU,它为我解决了问题。


答案 2

推荐