A new Flutter project.
- Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)
- upgrade packages
$ flutter pub outdated
- Then upgrade the outdated packages one by one like this:
$ flutter pub upgrade outdated_package