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
Flutter app crushes on Android release build #4616
Comments
@Karjan1 sorry that you are facing this issue. |
Thank you @NikaHsn
I don't have a Proguard config, but I believe Flutter does obfuscation by default? I just added Sentry gradle login to deobfuscate traces on their side. |
Code shrinking is enabled by default (flutter dev docs). I suspect the issue you are facing is related to shrinking. |
I just tried without shrinking. |
@Karjan1 can you share the output of running the following two commands?
|
Sure. It looks like you had a good hunch. It's late today, but the error looks helpful I'll look into it tomorrow
|
It seems to work now. I pinned the dependency explicitly in
|
I am glad to hear you were able to resolve the issue. It should be necessary to pin the dependency but it is possible that a newer version of the dependency is conflicting with another 3rd a party dependency. Since you were able to work around the issue and I have been unable to reproduce this I am going to close this out. |
Had this same issue occur today, and was able to resolve it by adding Google's
Perhaps |
@hrafnthor If you had to add that to your proguard file I wonder if there is a bug in a recent version of |
i'm also having this issue with my proyect in flutter 3.16.9 using the package version: 1.7.2 ./gradlew app:androidDependencies does not show the error exposed in this tread in my case. i tried adding: dependencies { but did not work in my case. i'll attach stack trace from firebase crashlytics |
@Giovanny-DS are you able to reproduce this locally? Can you share more info about the reproduction? does it occur on all devices? |
@Jordan-Nelson yeah actually i could: i'll share a repo tomorrow |
Here is the repo you acn just fork. and run with flutter version 3.16.9 IMPORTANT NOTE: if you run this in dev /debug mode it will work without failures. to get the error you actually need to run |
@Giovanny-DS thank you for providing these details. we will look into this issue and get back to you with any updates. |
Description
There are no errors when running on emulator. Release build works on ios but crushes on Android right after app starts.
Tried with releases of
amplify_auth_cognito
1.7.2 and 1.6.2.App is published in ios/play store. Issue happens on version released to internal testers.
Tried local build and using Codemagic.
With Sentry and Proguard I git a following stacktrace
Categories
Steps to Reproduce
NONE
Screenshots
No response
Platforms
Flutter Version
3.19.2
Amplify Flutter Version
1.7.0
Deployment Method
Custom Pipeline
Schema
No response
The text was updated successfully, but these errors were encountered: