java 运行模拟器时出现“com.android.exchange.ExchangeService 已泄露...”错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14111677/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
"com.android.exchange.ExchangeService has leaked ..." error when running emulator
提问by Webnet
I'm seeing many of these errors when using my emulator with IntelliJ. I'm not sure what to do about it. It doesn't appear to have been affecting anything, so I haven't paid much attention to it. But I'm concerned it may cause an issue before long.
将我的模拟器与 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)
采纳答案by user2090107
That answer does not solve the problem, only makes the symptoms go away. Try disabling host GPU in the Emulator options, it fixed the problem for me.
该答案并不能解决问题,只会使症状消失。尝试在模拟器选项中禁用主机 GPU,它为我解决了问题。