0

I'm getting a compile error as asBitmap is showing in red text error color, please help me to fix the issue. code below:

 try {
        Bitmap bitmap = Glide.with(this).load(url).asBitmap().into(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL).get();
        if (bitmap != null) {
            if (wallpaper) {
                setAsWallpaper(bitmap);
            } else {
                saveImage(bitmap);
            }
        } else {
            failure();
        }

    }
Kunal Ukey
  • 322
  • 4
  • 9

0 Answers0