79768266

Date: 2025-09-18 09:54:32
Score: 1.5
Natty:
Report link

the error happens because shrinkResources is enabled without minifyEnabled, which Android does not allow. To fix this, open android/app/build.gradle and check both are set consistently in your release block, either disable both (minifyEnabled false and shrinkResources false) if you just want your build to succeed, or enable both (minifyEnabled true and shrinkResources true) if you want shrinking, in which case you must also include proper proguard-rules.pro to prevent Flutter or plugin code from being stripped out. if a plugin is forcing shrinkResources, you can disable it globally in gradle.properties with android.enableResourceShrinker=false. Which should ensure the build system sees a valid configuration and thus removing the error.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Harpreet