java.lang.outofmemoryerror exception while trying to display images in gridview

前端 未结 3 361
暖寄归人
暖寄归人 2021-01-27 14:03

I am trying to display 6 images, which i have kept in res/drawable folder in the gridview.

but i get the following error

10-29 09:44:20.025: E/AndroidRun         


        
3条回答
  •  鱼传尺愫
    2021-01-27 14:28

    The images you are using are big.
    Have a look at this article
    OR
    Scale your images down. - reduce their size and quality.

提交回复
热议问题