For me the error was: Creating default icons Android ✕ Could not generate launcher icons PathNotFoundException: Cannot open file, path = 'assets/icon/icon.png' (OS Error: The system cannot find the path specified. , errno = 3) Failed to update packages.
I paste the image at the same path that shows in the error "path = 'assets/icon/icon.png'" and paste that path in pubsec.yml file. It works for me