int myWidth = 512; int myHeight = 384; Glide.with(yourApplicationContext)) .load(youUrl) .asBitmap() .into(new SimpleTarget(myWidth, myHeight) { @Override public void onResourceReady(Bitmap bitmap, GlideAnimation anim) { // Do something with bitmap here. } }; converts to: Glide.with(this) .load(Uri.parse(movie.cardImageUrl)) .asBitmap() .into(SimpleTarget(500, 500) { override fun onResourceReady(bitmap: Bitmap, anim: GlideAnimation?) { metadataBuilder.putBitmap(MediaMetadata.METADATA_KEY_ART, bitmap) mSession!!.setMetadata(metadataBuilder.build()) } }) Gives these compiler errors: None of the following functions can be called with the arguments supplied: public constructor SimpleTarget() defined in com.bumptech.glide.request.target.SimpleTarget public constructor SimpleTarget(width: Int, height: Int) defined in com.bumptech.glide.request.target.SimpleTarget