1.查看依赖树
flutter pub deps
2.清理Flutter缓存
flutter clean
3.清理Gradle缓存
./gradlew cleanBuildCache
4.清理Pub缓存:
flutter pub cache repair
5.获取依赖项:
flutter pub get
6.更新依赖项:
flutter pub upgrade
7.清理Gradle构建:
./gradlew clean
8.重新下载Gradle依赖项:
./gradlew build
9.打包android 命令
flutter build apk --release