错误膨胀类<未知>我知道这是一个网络视图未知>
我需要帮助,我在市场上发布了一个使用 webview 来呈现信息的应用程序。我时不时地收到如下错误报告:
错误指向我的活动的通货膨胀线:
setContentView(R.layout.view);
Binary XML 文件第 22 行:错误膨胀类
必须表示
在我的布局中 http://pastebin.com/MFAPawin
请帮助我或给我一个提示,让我朝着正确的方向开始!这个问题困扰了我很久,一直没能解决。。 谢谢你!
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:
The error points to my inflation-line of my activity:
setContentView(R.layout.view);
Binary XML file line #22: Error inflating class <unknown>
must mean
<WebView android:id="@+id/WebView" android:layout_width="fill_parent" android:layout_height="fill_parent"></WebView>
in my layout 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
罪魁祸首是创建布局时引发的 java.lang.OutOfMemoryError 异常。简而言之,使用更少的内存。但说实话,当你内存不足时,所有事情都会失败。
在没有看到您的任何代码的情况下,我的建议是您可能在某处存在内存泄漏。很难通过看到任何代码来判断,但请查看:
http ://android-developers.blogspot.co.uk/2009/01/avoiding-memory-leaks.html
获取一些可能有帮助的提示。
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.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
for some tips that may help.
您的位图大小似乎超出了 VM 预算 (java.lang.OutOfMemoryError)。您可能会此处,此处 或 此处获取解决方案。
It looks like your bitmap size exceeds VM budget (java.lang.OutOfMemoryError). You might look here, here or here for a solution.