-
Notifications
You must be signed in to change notification settings - Fork 65
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
Crash in release mode caused by missing proguard rule #9
Comments
Another way |
This proguard rules doesn't work on latest android project. |
There are new magical incantations to add to the proguard file, in addition to the known two lines:
|
I hope this fixes your issue @MitulVarmora |
Great, Thanks. It worked. |
Describe the bug
A project using this component crashes in Release mode when launching the picker. The problem does not happen in Debug mode.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The picker activity is open and the user can navigate through a stacked grid view of photos from the unsplash website.
Observed behavior
The app crashes.
Additional context
Stacktrace from Logcat:
Solution
I fixed the issue by adding the following line to my project's proguard-rules.pro file:
The problem is fixed this way on my side. I thought I'd be nice to report it, for other users. Imho this or an equivalent addition to the proguard rules should be mentioned in the README file. Or, if that's reasonable, directly applied to the relevant files in this repository.
The text was updated successfully, but these errors were encountered: