Skip to content Skip to sidebar Skip to footer

Out Of Memory Error When Inflating Simple Xml Layout In Android

I have an out if memory error reported by some users on google play that i cant seem to reproduce no matter how hard I try. The error is shown on the line of my java file where I t

Solution 1:

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.

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

Solution 2:

I see this error when the app is running out of memory ie. there is a memory leak somewhere. I have made a image heavy app and only after switching to Googles new Volley framework have the error gone away.

Post a Comment for "Out Of Memory Error When Inflating Simple Xml Layout In Android"