Getting Bitmap from Image using Glide in android

I want to get the bitmap from an image using Glide. I am doing the following –

Bitmap chefBitmap = Glide.with(MyActivity.this)
.into(100, 100)

It used to work with the previous Glide version.
But it does not work with this in gradle – “compile ‘com.github.bumptech.glide:glide:4.0.0′”

I want to use this dependency because this is the latest version.

Can anyone help me in this regard. Thanks in advance.

You should add in your

  compile 'com.github.bumptech.glide:glide:4.0.0'
  compile ''
  annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'

Also, give permission in your manifest.xml

Try this in your build.gradle;

 compile 'com.github.bumptech.glide:glide:3.7.0'

and load your bitmap like below;