Search code examples
androidwebp

I am trying to view webp image in imageview it's size is below 200kb . but it is showing overflow error


I using imageview in android app and i also tried with picasso but it crashed
i am trying to load it from

  ImageView hl=(ImageView)findViewById(R.id.homepag);
       Picasso.with(getApplicationContext()).load(R.drawable.s1).into(hl);

error

 Process: com.va.androidapp, PID: 6920

java.lang.RuntimeException: Canvas: trying to draw too 
large(144000000bytes) bitmap.
        at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:260)

Image details webp is showing overflow error in android imageview


Solution

  • Move the image into High-res folder and check. drawable-xhdpi like that.