且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Android中膨胀简单xml布局时出现内存不足错误

更新时间:2023-01-14 14:08:34

当图像的大小大于模拟器的宽度或高度时,将出现此错误.因此,请检查您的图像并调整其大小.

this error comes when size of images are larger then the either width or height of emulator. so check your images and re-size them.

有关更多信息,请参阅此链接二进制XML文件第2行:膨胀类android.widget.LinearLayout

for more info refer to this linkBinary XML file line #2: Error inflating class android.widget.LinearLayout