Android java.lang.OutOfMemoryError?

前端 未结 8 787
旧巷少年郎
旧巷少年郎 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:07
        <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"/>
    
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题