Android java.lang.OutOfMemoryError?

前端 未结 8 816
旧巷少年郎
旧巷少年郎 2020-12-08 16:24
04-25 08:19:10.111    2431-2603/com.example.francesco.guidedautorewithtabs E/art﹕ Throwing OutOfMemoryError \"Failed to allocate a 4194316 byte allocation with 19836         


        
8条回答
  •  清歌不尽
    2020-12-08 17:10

    Try to call System.gc() manually before you load image to memory and when you don't need to use this image object.

提交回复
热议问题