After upgrading to flutter1.12
flutter build apk --release packed encounter the following error apk
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.
核心信息:Removing unused resources requires unused code shrinking to be turned on
In fact, means that either
shrinkResources true
minifyEnabled true
Or
shrinkResources false
minifyEnabled false
Both consistent on the line
First read
shrinkResources false
minifyEnabled false
Success finally build apk