未使用のリソースを削除すると、オンにする縮小未使用のコードが必要です

flutter1.12にアップグレードした後

フラッタービルドAPKは、次のエラーAPKパックの出会いを--release

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\Administrator\Downloads\Compressed\inin\android\build.gradle' line: 37

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Removing unused resources requires unused code shrinking to be turned on. See http://d.android.com/r/tools/shrink-resources.html for more information.

核心信息:未使用のリソースを削除すると、オンにする縮小未使用のコードが必要です

どちらかという事実に、手段

shrinkResources true
minifyEnabled true

若しくは

 shrinkResources false
 minifyEnabled false

ライン上の一貫性の両方

まず読みます

 shrinkResources false
 minifyEnabled false

成功の最後にビルドAPK

 

公開された371元の記事 ウォン称賛32 ビュー240 000 +

おすすめ

転載: blog.csdn.net/perfectnihil/article/details/103559055