在Android应用程序的WebView内存泄漏 [英] WebView memory leak in android app

查看:151
本文介绍了在Android应用程序的WebView内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了的WebView ......每次我在网上查看我注意到在任务管理器,我得到了内存泄漏加载页面布局...好像我的WebView在内存中保存的所有页面数据......我怎么能避免这种情况?

I'm using a layout with a webview ... every time I load a page in the web view I notice in the task manager that I get a memory leak... seems like my webview keeps in memory all pages' data... how can I avoid this behavior?

推荐答案

看的这个错误报告。虽然如 @CommonsWare 说,使用任务管理器不能识别内存泄漏的一个非常有效的方法。

Look at this bug report. Although, as @CommonsWare said, using the task manager is not a very effective way of identifying memory leaks.

另外,看看这个问题

这篇关于在Android应用程序的WebView内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆