切换别的分支运行代码的时候报错:
e: E:\Android\Flutter\flutter\.pub-cache\hosted\pub.flutter-io.cn\fluttertoast-7.0.4\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\FlutterToastPlugin.kt: (11, 14): Redeclaration: FlutterToastPlugin
e: E:\Android\Flutter\flutter\.pub-cache\hosted\pub.flutter-io.cn\fluttertoast-7.0.4\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt: (16, 16): Redeclaration: MethodCallHandlerImpl
e: E:\Android\Flutter\flutter\.pub-cache\hosted\pub.flutter-io.cn\fluttertoast-7.1.1\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\FlutterToastPlugin.kt: (10, 14): Redeclaration: FlutterToastPlugin
e: E:\Android\Flutter\flutter\.pub-cache\hosted\pub.flutter-io.cn\fluttertoast-7.1.1\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt: (16, 16): Redeclaration: MethodCallHandlerImpl
根据上面的路径找到文件,将2个版本都删掉,重新运行ok