Search code examples
androidflutterdartflutter-dependenciessamsung-mobile

How to fix flutter crash on Samsung device when opening the app


I'm developing flutter app using the physical device Samsung, when i open the App on Samsung device my app got stuck for 1-2s then my device lock screen by itself. When i open the lock screen then i got blank screen, after a while like 2s the app is opened up. I'm thinking if samsung has their own firewall to make my apps crashing because the permission that has to be granted for running the app because it don't happen in another android device, or anything else?


Solution

  • I figure it out, there's problem on implementing the flutter_icon lib to make a launcher_icon for my app. Found on github that says to deleted the mipmap-anydpi-v26 folder on android/app/src/main/res. And the crash on my samsung device when opening the app is solved too.