在Android应用程序的WebView内存泄漏应用程序、内存、Android、WebView

2023-09-05 02:06:57 作者:往事风中埋

我使用了的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.

另外,看看这个问题。