Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android release build crashes with proguard error #25951

Closed
abacaj opened this issue Jan 2, 2019 · 16 comments
Closed

Android release build crashes with proguard error #25951

abacaj opened this issue Jan 2, 2019 · 16 comments
Labels
c: crash Stack traces logged to the console c: regression It was better in the past than it is now platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@abacaj
Copy link

abacaj commented Jan 2, 2019

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)
@zoechi
Copy link
Contributor

zoechi commented Jan 2, 2019

Can you reproduce in dev channel?

@zoechi zoechi added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 2, 2019
@ezraaaa
Copy link

ezraaaa commented Jan 2, 2019

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

@zoechi zoechi added c: crash Stack traces logged to the console platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels. c: regression It was better in the past than it is now labels Jan 2, 2019
@zoechi zoechi added this to the Goals milestone Jan 2, 2019
@abacaj
Copy link
Author

abacaj commented Jan 3, 2019

Yes tried all channels available, same result.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 3, 2019
@remosingh
Copy link

same issue....

@zoechi
Copy link
Contributor

zoechi commented Jan 22, 2019

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

@zoechi zoechi closed this as completed Jan 22, 2019
@xiaoxiaocainiao
Copy link

try this one:
minifyEnabled false

@00011110
Copy link

@xiaoxiaocainiao thanks man, it works!

@00011110
Copy link

@xiaoxiaocainiao , thanks man, it works!

@cfguimaraes
Copy link

@xiaoxiaocainiao that work for me too. Thank you.

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

@muammarridho
Copy link

@xiaoxiaocainiao it works, thanks bro.

@avvari-da
Copy link

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

@gitaaron
Copy link

Does this increase the size of the final binary?

@TobiCrackIT
Copy link

minifyEnabled false worked

@Nisthar
Copy link

Nisthar commented Dec 13, 2019

Does this increase the size of the final binary?

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

@WBlackstorm
Copy link

minifyEnabled false
shrinkResources false

Solved to me.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: crash Stack traces logged to the console c: regression It was better in the past than it is now platform-android Android applications specifically tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

No branches or pull requests