Animation Drawable causing OutOfMemoryError on second run in Android

前端 未结 5 1149
傲寒
傲寒 2020-12-05 11:57

I am currently developing a game and I\'m trying to use one AnimationDrawable to show one animation in my Main Menu. When I run the game once, it works perfectly. But if i t

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 12:33

    add these two lines in your android manifest file android:hardwareAccelerated="true" and android:largeHeap="true"

    
        
    
    

    Hope that will help you.

提交回复
热议问题