title: Using Coil library - imageView.draw(canvas) - Software rendering doesn't support hardware bitmaps
body: <p>This occur when try to draw canvas from imageView which using Coil to load image.</p>
  <p>Could you help me solve problem? Thank you all</p>
  <pre><code> fun loadImageFromUrl() {
          bodyImageView?.load(imagePathServer)
      }
  </code></pre>
  <p>This is code for draw bitmap from imageview</p>
  <pre><code>fun getBitmapFromView(view: View?): Bitmap? {
          var bitmap =
              Bitmap.createBitmap(view!!.width, view.height, Bitmap.Config.ARGB_8888)
          var canvas = Canvas(bitmap)
          view.draw(canvas)
          return bitmap
      }
  
  </code></pre>
  <p>Problem is shown</p>
  <p><a href="https://i.stack.imgur.com/kfitT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kfitT.png" alt="l" /></a></p>