1.查看flutter库的最新版本
https://pub.flutter-io.cn
2.更换flutterSDK后执行
flutter -h
3.将工程拷贝到新PC,执行
flutter packages get
4.报错:
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
解决方法:执行flutter channel master即可,切换到官方master开发主分支即可
要查看您当前使用的分支,请运行flutter channel查看
stable(稳定)分支
beta
dev
master
- stable
网友评论