Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : RuntimeException at DisplayListCanvas.throwIfCannotDraw

I had the exact same problem with Samsung Galaxy S6 S7 S8. In my case Splash Screen had high resolution and it was mistakenly placed in the drawable folder. I found solution from this answer.

  1. Right Click on drawable -> New -> Directory.
  2. Enter new directory name: xxhdpi. It will create a new folder named drawable-xxhdpi if you go to res
  3. Move your splash image from drawable to drawable-xxhdpi.

Just Resize your image in my case my Splash screen image dimensions are 1544x2100 so i changed to 1080x2100 and that will work!! Hope this will help!!! Thanks!!!


Try to set a debug point in android.view.DisplayListCanvas.throwIfCannotDraw and check what image is throw an exception. Some of them is incorrect - large size or you have too many images for example and cant record to canvas pool.