Out of Memory : android.support.v7.app.AppCompatActivity.onCreate

血红的双手。 提交于 2019-12-02 13:56:23

You are trying to load an image using the BitmapFactory right?

I assume that your image is too big:

16008012 byte allocation with 4277152 free bytes and 4MB until OOM

Your image is 16008012 but you only have 4277152 bytes free. Try using a smaller image.

This happened to me when I set a rather large drawable as the windowBackground property of the activity's theme. Reducing the size of the image should fix it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!