Skip to content

Android release build crashes with proguard error #25951

Closed

Description

@abacaj

This appears to be new as I have changed no code and was working 2 weeks ago... All i did was flutter upgrade.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> Job failed, see logs for details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Flutter version:

[✓] Flutter (Channel master, v1.1.5-pre.38, on Mac OS X 10.13.6
    17G65, locale en-US)
    • Flutter version 1.1.5-pre.38 at /Users/anton/flutter
    • Framework revision b9f9e384cb (9 hours ago), 2019-01-01
      11:47:29 -0500
    • Engine revision b1a9a6e794
    • Dart version 2.1.1 (build 2.1.1-dev.0.1 88e6fe0f67)

Activity

  1. zoechi commented on Jan 2, 2019

    @zoechi
    Contributor

    Can you reproduce in dev channel?

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jan 2, 2019
  3. ezraaaa commented on Jan 2, 2019

    @ezraaaa

    I'm having the same problem too. I've tried dev channel and it is returning the same thing

  4. added
    c: crashStack traces logged to the console
    platform-androidAndroid applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    c: regressionIt was better in the past than it is now
    on Jan 2, 2019
  5. added this to the milestone on Jan 2, 2019
  6. abacaj commented on Jan 3, 2019

    @abacaj
    Author

    Yes tried all channels available, same result.

  7. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jan 3, 2019
  8. remosingh commented on Jan 6, 2019

    @remosingh

    same issue....

  9. zoechi commented on Jan 22, 2019

    @zoechi
    Contributor

    As far as I understand Proguard is currently not fully supported.
    I'm closing this as duplicate of #11099

  10. xiaoxiaocainiao commented on Mar 4, 2019

    @xiaoxiaocainiao

    try this one:
    minifyEnabled false

  11. GorgeAI commented on Apr 24, 2019

    @GorgeAI

    @xiaoxiaocainiao thanks man, it works!

  12. GorgeAI commented on Apr 24, 2019

    @GorgeAI

    @xiaoxiaocainiao , thanks man, it works!

  13. cfguimaraes commented on May 12, 2019

    @cfguimaraes

    @xiaoxiaocainiao that work for me too. Thank you.

    In case some face this problem, the path to setting is android/app/build.gradle

  14. muammarridho commented on Jul 14, 2019

    @muammarridho

    @xiaoxiaocainiao it works, thanks bro.

  15. avvari-da commented on Jul 16, 2019

    @avvari-da

    If you are not intending to change minifyEnabled false, this worked fine for me - #19250 (comment)

  16. gitaaron commented on Nov 19, 2019

    @gitaaron

    Does this increase the size of the final binary?

  17. TobiCrackIT commented on Dec 6, 2019

    @TobiCrackIT

    minifyEnabled false worked

  18. Nisthar commented on Dec 13, 2019

    @Nisthar

    Does this increase the size of the final binary?

    Yes. i wish there was a way to fix this with minify enabled.

  19. WBlackstorm commented on Jul 29, 2020

    @WBlackstorm

    minifyEnabled false
    shrinkResources false

    Solved to me.

  20. github-actions commented on Aug 14, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  21. locked as resolved and limited conversation to collaborators on Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consolec: regressionIt was better in the past than it is nowplatform-androidAndroid applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions