The app works fine on debug mode and everything works, when I run a release mode APK then the image won't load.
Already have the internet permission on Android Manifest, also other network calls are working (Firebase).
Is there any extra configuration needed to fix this issue?
I have already use cached_network_image in my multiple projects, and it was working well.
Is this the bug on the null safety version of the plugin?
Version: 3.0.0
Platform:
When I build an apk from the example it does show the images. Maybe something is wrong with proguard? Can you log the error (from inside the errorWidgetBuilder)?
When I build an apk from the example it does show the images. Maybe something is wrong with proguard? Can you log the error (from inside the errorWidgetBuilder)?

It doesn't show an error message it just shows the placeholder
The below is my code of the widget
Card(
clipBehavior: Clip.antiAlias,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(13)),
child: Container(
width: isCarousel ? double.infinity : 350,
child: CachedNetworkImage(
fit: BoxFit.fill,
imageUrl: bannerData.image!,
imageBuilder: (context, imageProvider) => Material(
child: Ink.image(
image: imageProvider,
fit: BoxFit.cover,
child: InkWell(
onTap: bannerData.link == null
? null
: () {
gotoLinkPage(
link: bannerData.link!, context: context);
}),
),
),
placeholder: (context, url) => Center(
child: CircularProgressIndicator.adaptive(),
),
errorWidget: (context, url, error) => Center(
child: Text(error.toString()),
),
),
),
)
Encountered same issue. This workaround worked for me.
I am also facing the same issue, but the only difference is that I am using cached_network_image: ^2.0.0. I think that it is bug.
Encountered same issue. This workaround worked for me.
Yes it also work for me. But I don't understand why it worked. Anyway thanks for your answer
I think some class is removed by minifying, maybe something from sqflite, that shouldn't be removed. Strange thing though is that I use cachednetworkimage in a production app with minify enabled that just works.
I'm having the same issue, but only when running in debug mode
I'm having the same issue, but only when running in debug mode
Doesn't really sound like the same issue. As far as I know you shouldn't enable minify on debug mode.
Your images don't show in debug mode, but do show in production?
I have the same problem. In debug mode, the images are not loaded, but there is no error

And yes, the image loads normally in the release
I fixed the loading in gradle:
android {
...
buildTypes {
debug {
shrinkResources false
minifyEnabled false
}
...
}
Your images don't show in debug mode, but do show in production?
Yes, same problems as @ServOKio, some of my images won't load when running in debug mode, on release the images are working fine
I just tested on IOS in debug mode and is working aswell.
Can you create a new ticket for that and describe how to reproduce? This ticket is about not showing in release mode (probably because of minify).
Can you create a new ticket for that and describe how to reproduce? This ticket is about not showing in release mode (probably because of minify).
Ok, I'll do that 馃憤馃徎
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
Most helpful comment
Encountered same issue. This workaround worked for me.