错误充气类<&不明GT;这是我所知道的是网页视图 [英] Error inflating class <unknown> which I know is a webview

查看:159
本文介绍了错误充气类<&不明GT;这是我所知道的是网页视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助,我有使用web视图为present信息..每一个现在,然后我得到像这样的错误报告,市场上发布的应用程序:

I need help, I have an application published on the market using a webview to present information.. Every now and then i get error reports like this one:

http://pastebin.com/zQ16Sf2z

错误指向我的活动我的通胀行:

The error points to my inflation-line of my activity:

的setContentView(R.layout.view);

二进制XML文件行#22:错误充气类<&不明GT; 一定意味着

<的WebView机器人:ID =@ + ID /的WebView的android:layout_width =FILL_PARENT机器人:layout_height =FILL_PARENT>< /的WebView>

在我的布局 http://pastebin.com/MFAPawin

请帮我或给我一个提示在正确的方向开始!这是一个问题,我有很长一段时间,一直没能解决..
谢谢!

Please help me or give me a hint for a start in the right direction! This is a problem I have had for a long time and have not been able to solve.. Thank you!

推荐答案

罪魁祸首是创建布局时所抛出的 java.lang.OutOfMemoryError 例外。因此,在短期使用较少的内存。但严重的是,当你耗尽内存的各种事情会失败。

The culprit is the java.lang.OutOfMemoryError exception that is thrown when creating your layout. So in short- use less Memory. But seriously when you run out of memory all kinds of things will fail.

在没有看到任何你code的我的建议是,你可能有内存泄漏的地方。这很难说有看到任何code,但检查出:

Without seeing any of your code my suggestion is that you may have a memory leak somewhere. It's hard to tell with seeing any code but check out:

HTTP://android-developers.blogspot。 co.uk/2009/01/avoiding-memory-leaks.html

有一些技巧可以帮助。

这篇关于错误充气类<&不明GT;这是我所知道的是网页视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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