5个小时后,Android Webview应用程序崩溃

时间:2018-08-15 08:00:10

标签: android memory-leaks out-of-memory android-webview

5小时后,我的应用程序不断爬行。我正在用8个视频在android中显示一个webview。它必须与内存问题有关,但我找不到它的位置。我正在使用loadDataWithBaseURL来显示Web视图。

错误

08-14 20:01:23.581 5552-5552/? E/ActivityThread: Service com.google.android.gm.EmailMigrationService has leaked ServiceConnection com.android.emailcommon.service.aj@3cd1a5a6 that was originally bound here
android.app.ServiceConnectionLeaked: Service com.google.android.gm.EmailMigrationService has leaked ServiceConnection com.android.emailcommon.service.aj@3cd1a5a6 that was originally bound here
    at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1077)
    at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:971)
    at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1791)
    at android.app.ContextImpl.bindService(ContextImpl.java:1774)
    at android.content.ContextWrapper.bindService(ContextWrapper.java:539)
    at com.android.emailcommon.service.ah.a(SourceFile:181)
    at com.android.emailcommon.service.ah.e(SourceFile:224)
    at com.android.email.service.n.c(SourceFile:161)
    at com.google.android.gm.EmailMigrationService.onHandleIntent(SourceFile:221)
    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.os.HandlerThread.run(HandlerThread.java:61

1 个答案:

答案 0 :(得分:0)

我在这里可以看到您binding是服务。在unbinding

中考虑onDestroy()