一.Flutter pub get 一直running
1.首先配置环境变量
PUB_HOSTED_URL:https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL:https://storage.flutter-io.cn
2.删除pubspec.lock文件
3.在控制台重新执行
flutter pub get
如果还是不行那就删除pubspec.lock文件后重启android studio 再执行第3步骤
二.Error: Cannot run with sound null safety, because the following dependencies
1.在android studio中
--no-sound-null-safety
2.在vscode中
run
flutter run --no-sound-null-safety
build
flutter build apk --no-sound-null-safety