Flutter Package:未壓縮的包存檔太大 (Flutter Package : Uncompressed package archive is too large)


問題描述

Flutter Package:未壓縮的包存檔太大 (Flutter Package : Uncompressed package archive is too large)

我正在嘗試將我的 Flutter 包上傳到 pub.dev。試運行工作正常,沒有顯示錯誤。但是當我將相同的包上傳到 pub.dev 時,上傳失敗並顯示“未壓縮的包存檔太大(大小 > 104857600)。

任何建議/解決方案如何克服它?


參考解法

方法 1:

I had this issue recently on updating one of my plugin package. All old versions uploaded properly but this one didnt and there were only minor changes. After some research I found that it was App.framework and Flutter.framework in the examples folder causing the issue. I then ran flutter clean in examples folder and that was it, upload worked. Phew!!

方法 2:

"Your package must be less than 100 MB large after gzip compression. If it’s too large, consider splitting it into multiple packages, or cutting down on the number of included resources or examples."

You can see the official documentation

方法 3:

For me, I had created a /examples folder which was taking up too much space. I had no choice but to delete it.

(by Amit Kalghatgianoop4realSubair KMendelG)

參考文件

  1. Flutter Package : Uncompressed package archive is too large (CC BY‑SA 2.5/3.0/4.0)

#flutter-packages #Flutter #flutter-plugin #flutter-pub






相關問題

使用顫振包有缺點嗎? (Is there a downside for using flutter packages?)

導入 Http/http.dart 包時出錯 (error in importing Http/http.dart package)

flutter pub get 卡住了 (flutter pub get is stucking)

在 Onboard Pages 上進行 Flutter 應用程序初始化? (Flutter app initialization at Onboard Pages?)

Flutter + FlutterFire 版本根據遷移指南使用 firebase_messaging 解決失敗的 firebase_remote_config (Flutter + FlutterFire version solving failed firebase_remote_config with firebase_messaging as per migration guide)

無法在 iOS 模擬器上使用顫振圖像選擇器選擇圖像 (Unable to select image using flutter image picker on iOS simulator)

Flutter Package:未壓縮的包存檔太大 (Flutter Package : Uncompressed package archive is too large)

我可以知道是否有一個顫振包可以在照片和圖紙上做標記和註釋? (May I know is there a flutter package to do markups and annotations on photos and drawings?)

使用音頻播放器包時出現顫振錯誤 (Flutter error when using audioplayer packages)

Flutter 上的 lib 中沒有包選擇 (There isn't package selection in lib on Flutter)

運行“flutter pub get”時在 google_maps_flutter 上解決 Flutter 版本失敗 (Flutter version solving failed on google_maps_flutter while running "flutter pub get")

顫振中甜甜圈圖表中的最高值弧 (Highlist highest value arc in donut chart in flutter)







留言討論