Crash On Using Glide Library
Loading different size of images into ImageView using Glide Library. But not sure why glide fails to handle the memory consumption, recycle and reuse it. Gradle: api 'com.github.bu
Solution 1:
Try with RequestOptions
& Upgrade version.
RequestOptions requestOptions = new RequestOptions();
Glide.with(getContext())
.setDefaultRequestOptions(requestOptions)
.load(imageUrl)
.into(view);
build.gradle
should be
dependencies {
implementation 'com.github.bumptech.glide:glide:4.6.1'
}
You can read Cannot obtain size for recycled Bitmap (LazyBitmapDrawableResource)
.
Post a Comment for "Crash On Using Glide Library"