每次我推动我的git回购时,我都会收到以下警告
remote: warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: warning: See http://git.io/iEPt8g for more information.
remote: warning: File build/app/outputs/flutter-apk/app-debug.apk is 63.00 MB; this is larger than GitHub's recommended maximum file size of 50.00
MB这些是我的.gitignore文件
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/此外,我还添加了下面的一行,以克服这种情况
build/app/outputs/flutter-apk/app-debug.apk一切看起来都很好,但是每次应用程序都会被推送。如何解决这个问题?
发布于 2021-07-19 14:53:32
在提交git之前尝试flutter clean。
因为,在flutter clean之后,build目录将不在all..so,没有调试APK。
发布于 2022-05-13 15:26:39
有同样的问题,但这并没有解决问题,因为我甚至无法在目录上找到上传的APK,即使在删除它们并运行flutter clean之后
https://stackoverflow.com/questions/68365093
复制相似问题