change the version you used in the implementation to earlier version - i used 6.0.3 - , if you have the same error you might uses a package that implements the version 6.1.0 -in my case it was "usb-serial-0.5.2" -, so you need to change the version in the package build gradle too, go to your project on android studio => external libraries => Flutter plugins=> the package ,and change the version from dependencies as you did with the build gradle file of your project