java.lang.OutOfMemoryError: Failed to allocate a allocation until OOM

后端 未结 4 623
有刺的猬
有刺的猬 2021-01-15 15:37

Actually, I am trying to create a app with n number of multimedia files which includes images and videos. My apps size is around 34MB, and my assets size is aro

4条回答
  •  有刺的猬
    2021-01-15 16:05

    It's a common error when you dealing with Bitmap so add this line in AndroidManifest.xml: android:largeHeap="true"

     
    

    Hope it will be helpful.

提交回复
热议问题