Сначала я проверил Coil и получил следующую ошибку:
Код: Выделить всё
java.lang.IllegalStateException: BitmapFactory returned a null bitmap. Often this means BitmapFactory could not decode the image data read from the input source (e.g. network, disk, or memory) as it's not encoded as a valid image format.
Код: Выделить всё
Load failed for [https://c.dns-shop.ru/thumb/st4/fit/200/200/04d0ba06bcd6368cef034b0ff1f84fea/f7ab30662cb7df554dcd3cf872287b8b4ff3c10cf524175e8f3f1836328eede9.jpg] with dimensions [1080x722]
class com.bumptech.glide.load.engine.GlideException: Failed to load resource
Cause (1 of 1): class com.bumptech.glide.load.engine.GlideException: Failed LoadPath{->Object->Drawable}, REMOTE
Cause (1 of 4): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{->Drawable->Drawable}
Cause (2 of 4): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{->GifDrawable->Drawable}
Cause (3 of 4): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{->Bitmap->BitmapDrawable}
Cause (4 of 4): class com.bumptech.glide.load.engine.GlideException: Failed DecodePath{->BitmapDrawable->Drawable}
Код: Выделить всё
ProgressiveDecoder: unknown image format, {uri: https://c.dns-shop.ru/thumb/st4/fit/200/200/04d0ba06bcd6368cef034b0ff1f84fea/f7ab30662cb7df554dcd3cf872287b8b4ff3c10cf524175e8f3f1836328eede9.jpg, firstEncodedBytes: 15BE1C006400E7B69FCA, length: 7279}
Информация об изображениях и метаданных здесь.
Мой код:
Код: Выделить всё
Column(
modifier = Modifier.fillMaxSize()
) {
AsyncImage(
model = ImageRequest.Builder(this@MainActivity)
.data(link)
.diskCachePolicy(CachePolicy.DISABLED)
.build(),
contentDescription = null,
modifier = Modifier
.weight(1f)
.fillMaxSize()
)
FrescoImage(
imageUrl = link,
contentDescription = null,
modifier = Modifier
.weight(1f)
.fillMaxSize()
)
GlideImage(
model = link,
contentDescription = null,
modifier = Modifier
.weight(1f)
.fillMaxSize()
) {
it.diskCacheStrategy(DiskCacheStrategy.NONE)
}
}
Подробнее здесь: https://stackoverflow.com/questions/757 ... age-format