安卓 加载布局文件内存溢出

安卓加载布局文件报oom异常
Throwing OutOfMemoryError "Failed to allocate a 6158668 byte allocation with 486784 free bytes and 475KB until OOM"
android.view.InflateException: Binary XML file line #18: Error inflating class

xml第18行,可能是引用的背景图片太大了,也可能使你的布局结构太复杂了。

不错啊不错啊不错啊不错啊不错啊不错啊

不错啊不错啊不错啊不错啊不错啊不错啊