FATAL EXCEPTION: main java.lang.OutOfMemoryError at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)

后端 未结 4 1108
时光取名叫无心
时光取名叫无心 2021-01-15 04:42

I keep getting this error when I run my app. The app will compile fine and once I start interacting with it (ImageSlider) sometimes it breaks and comes up with that message.

4条回答
  •  失恋的感觉
    2021-01-15 04:59

    If Google docs didn't help (and they have some neat techniques), as a last resort you can try adding android:largeHeap="true" to the tag in the AndroidManifest.xml. But really, last resort.

提交回复
热议问题